home *** CD-ROM | disk | FTP | other *** search
Text File | 2003-07-17 | 286.6 KB | 9,634 lines |
- // Copyright (C) 1997-2002 Alias|Wavefront,
- // a division of Silicon Graphics Limited.
- //
- // The information in this file is provided for the exclusive use of the
- // licensees of Alias|Wavefront. Such users have the right to use, modify,
- // and incorporate this code into other products for purposes authorized
- // by the Alias|Wavefront license agreement, without fee.
- //
- // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
- // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
- // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
- // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
- // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- // PERFORMANCE OF THIS SOFTWARE.
- //
- // Copyright (C) 1997-2002 Alias|Wavefront,
- // a division of Silicon Graphics Limited.
- //
- // The information in this file is provided for the exclusive use of the
- // licensees of Alias|Wavefront. Such users have the right to use, modify,
- // and incorporate this code into other products for purposes authorized
- // by the Alias|Wavefront license agreement, without fee.
- //
- // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
- // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
- // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
- // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
- // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- // PERFORMANCE OF THIS SOFTWARE.
- //
-
- global proc string getRunTimeCommandAnnotation(string $runTimeCommand)
- //
- // Description:
- // A handy proc that will simply return the annotation for the specified
- // run time command.
- //
- // Arguments:
- // A runTimeCommand.
- //
- // Returns:
- // The annotation string. May be empty string.
- //
- {
- string $annotation = "";
-
- if (`runTimeCommand -exists $runTimeCommand`) {
- $annotation = `runTimeCommand -query -annotation $runTimeCommand`;
- }
-
- return $annotation;
- }
-
- // ======================================================================
- // ======================================================================
- //
- // Common menu set, ie. File, Edit, Modify, Create, Display, Window,
- // and Help.
- //
- // ======================================================================
- // ======================================================================
- proc commonMenus() {
- //
- // File menu.
- //
- // ----------------------------------------------------------------------
-
- // Scene operations: New, Open, Save, Save As...
- //
- runTimeCommand -default true
- -annotation ("New Scene: Create a new scene")
- -category ("File")
- -command ("checkForUnknownNodes(); saveChanges(\"file -f -new\")")
- NewScene;
-
- runTimeCommand -default true
- -annotation ("Open Scene: Open a scene")
- -category ("File")
- -command ("projectViewer Open; checkForUnknownNodes()")
- OpenScene;
-
- runTimeCommand -default true
- -annotation ("Open Scene Options")
- -category ("File")
- -command ("fileOptions \"Open\" \"projectViewer Open\"")
- OpenSceneOptions;
-
- runTimeCommand -default true
- -annotation ("Optimize Scene Size: Remove unused items")
- -category ("File")
- -command ("cleanUpScene 1")
- OptimizeScene;
-
- runTimeCommand -default true
- -annotation ("Optimize Scene Size Options")
- -category ("File")
- -command ("cleanUpScene 2")
- OptimizeSceneOptions;
-
- runTimeCommand -default true
- -annotation ("Save Scene: Save the current scene")
- -category ("File")
- -command ("checkForUnknownNodes(); FileMenu_SaveItem")
- SaveScene;
-
- runTimeCommand -default true
- -annotation ("Save Scene Options")
- -category ("File")
- -command ("fileOptions \"Save\" \"SaveScene\"")
- SaveSceneOptions;
-
- runTimeCommand -default true
- -annotation ("Save Scene As: Save the current scene under a new " +
- "name or export all")
- -category ("File")
- -command ("checkForUnknownNodes(); projectViewer SaveAs")
- SaveSceneAs;
-
- runTimeCommand -default true
- -annotation ("Save Scene As Options")
- -category ("File")
- -command ("fileOptions \"SaveAs\" \"projectViewer SaveAs\"")
- SaveSceneAsOptions;
-
- // Save Preferences.
- //
- runTimeCommand -default true
- -annotation ("Save Preferences: Save the current preferences")
- -category ("File")
- -command ("savePrefs;")
- SavePreferences;
-
- // Import and Export.
- //
- runTimeCommand -default true
- -annotation ("Import: Add the file to the current scene")
- -category ("File")
- -command ("projectViewer Import; checkForUnknownNodes()")
- Import;
-
- runTimeCommand -default true
- -annotation ("Import Options")
- -category ("File")
- -command ("fileOptions \"Import\" \"projectViewer Import\"")
- ImportOptions;
-
- runTimeCommand -default true
- -annotation ("Export All: Export entire scene (including contents " +
- "of all references) into one file")
- -category ("File")
- -command ("checkForUnknownNodes(); projectViewer ExportAll")
- Export;
-
- runTimeCommand -default true
- -annotation ("Export All Options")
- -category ("File")
- -command ("fileOptions \"ExportAll\" \"projectViewer ExportAll\"")
- ExportOptions;
-
- runTimeCommand -default true
- -annotation ("Export Selection: Export selected objects (and " +
- "related info) to a new file")
- -category ("File")
- -command ("checkForUnknownNodes(); projectViewer ExportActive")
- ExportSelection;
-
- runTimeCommand -default true
- -annotation ("Export Selection Options")
- -category ("File")
- -command ("fileOptions \"ExportActive\" \"projectViewer ExportActive\"")
- ExportSelectionOptions;
-
- // Reference operations.
- //
- runTimeCommand -default true
- -annotation ("Create Reference: Create a reference")
- -category ("File")
- -command ("projectViewer Reference")
- CreateReference;
-
- runTimeCommand -default true
- -annotation ("Create Reference Options")
- -category ("File")
- -command ("fileOptions \"Reference\" \"projectViewer Reference\"")
- CreateReferenceOptions;
-
- runTimeCommand -default true
- -annotation ("Reference Editor: Edit the references for the " +
- "current scene")
- -category ("File")
- -command ("tearOffPanel \"Reference Editor\" referenceEditor true")
- ReferenceEditor;
-
- // Project operations.
- //
- runTimeCommand -default true
- -annotation ("New Project: Create a new project and make it " +
- "the current project")
- -category ("File")
- -command ("projectSetup 1")
- NewProject;
-
- runTimeCommand -default true
- -annotation ("Edit Project: Edit the current project")
- -category ("File")
- -command ("projectSetup 2")
- EditProject;
-
- runTimeCommand -default true
- -annotation ("Set Project: Change the current project")
- -category ("File")
- -command ("setProject \"\"")
- SetProject;
-
- // Quit the application.
- //
- runTimeCommand -default true
- -annotation ("Quit")
- -category ("File")
- -command ("quit")
- Quit;
-
- //
- // Edit menu.
- //
- // ----------------------------------------------------------------------
-
- // Undo and Redo.
- //
- runTimeCommand -default true
- -annotation ("Undo: Undo the last action")
- -category ("Edit")
- -command ("undo")
- Undo;
-
- runTimeCommand -default true
- -annotation ("Redo: Redo the last undone action")
- -category ("Edit")
- -command ("redo")
- Redo;
-
- runTimeCommand -default true
- -annotation ("Undo View Change")
- -category ("Edit")
- -command ("viewSet -pv `hotkeyCurrentCamera`")
- UndoViewChange;
-
- runTimeCommand -default true
- -annotation ("Redo View Change")
- -category ("Edit")
- -command ("viewSet -nv `hotkeyCurrentCamera`")
- RedoViewChange;
-
- // Repeat last.
- //
- runTimeCommand -default true
- -annotation ("Repeat Last")
- -category ("Edit")
- -command ("repeatLast")
- RepeatLast;
-
- // Recent Commands window.
- //
- runTimeCommand -default true
- -annotation ("Recent Commands Window")
- -category ("Edit")
- -command ("recentCmdWin")
- RecentCommandsWindow;
-
- // Cut, copy, paste, and delete keys.
- //
- runTimeCommand -default true
- -annotation ("Cut Keys: Remove keys and place on animation clipboard")
- -category ("Edit")
- -command ("performCutKeyArgList 1 {\"0\", \"animationList\", \"0\"}")
- CutKeys;
-
- runTimeCommand -default true
- -annotation ("Cut Keys Options")
- -category ("Edit")
- -command ("performCutKeyArgList 1 {\"1\", \"animationList\", \"0\"}")
- CutKeysOptions;
-
- runTimeCommand -default true
- -annotation ("Copy Keys: Copy keys and place on animation clipboard")
- -category ("Edit")
- -command ("performCopyKeyArgList 1 {\"0\", \"animationList\", \"0\"}")
- CopyKeys;
-
- runTimeCommand -default true
- -annotation ("Copy Keys Options")
- -category ("Edit")
- -command ("performCopyKeyArgList 1 {\"1\", \"animationList\", \"0\"}")
- CopyKeysOptions;
-
- runTimeCommand -default true
- -annotation ("Paste Keys: Paste keys from animation clipboard")
- -category ("Edit")
- -command ("performPasteKeyArgList 1 {\"0\", \"animationList\", \"0\"}")
- PasteKeys;
-
- runTimeCommand -default true
- -annotation ("Paste Keys Options")
- -category ("Edit")
- -command ("performPasteKeyArgList 1 {\"1\", \"animationList\", \"0\"}")
- PasteKeysOptions;
-
- runTimeCommand -default true
- -annotation ("Delete Keys: Delete keys but do not place on " +
- "animation clipboard")
- -category ("Edit")
- -command ("performClearKeyArgList 1 {\"0\", \"animationList\", \"0\", \"0\"}")
- DeleteKeys;
-
- runTimeCommand -default true
- -annotation ("Delete Keys Options")
- -category ("Edit")
- -command ("performClearKeyArgList 1 {\"1\", \"animationList\", \"0\", \"0\"}")
- DeleteKeysOptions;
-
- runTimeCommand -default true
- -annotation ("Scale Keys: Scale keyed animation in time and/or value")
- -category ("Edit")
- -command ("performScaleKeyArgList 1 {\"0\", \"animationList\", \"0\"}")
- ScaleKeys;
-
- runTimeCommand -default true
- -annotation ("Scale Keys Options")
- -category ("Edit")
- -command ("performScaleKeyArgList 1 {\"1\", \"animationList\", \"0\"}")
- ScaleKeysOptions;
-
- runTimeCommand -default true
- -annotation ("Snap Keys: Snap keys to integer times")
- -category ("Edit")
- -command ("performSnapKeyArgList 1 { \"0\", \"animationList\", \"0\" }")
- SnapKeys;
-
- runTimeCommand -default true
- -annotation ("Snap Keys Options")
- -category ("Edit")
- -command ("performSnapKeyArgList 1 { \"1\", \"animationList\", \"0\" }")
- SnapKeysOptions;
-
- // Bake simulation.
- //
- runTimeCommand -default true
- -annotation ("Bake Simulation: Bake existing animation into keys")
- -category ("Edit")
- -command ("performBakeSimulationArgList 1 { \"0\", \"animationList\"}")
- BakeSimulation;
-
- runTimeCommand -default true
- -annotation ("Bake Simulation Options")
- -category ("Edit")
- -command ("performBakeSimulationArgList 1 {\"1\", \"animationList\"}")
- BakeSimulationOptions;
-
- // Cut
- //
- runTimeCommand -default true
- -annotation ("Cut Selected")
- -category ("Edit")
- -command ("cutCopyPaste \"cut\"")
- CutSelected;
-
- // Copy
- //
- runTimeCommand -default true
- -annotation ("Copy Selected")
- -category ("Edit")
- -command ("cutCopyPaste \"copy\"")
- CopySelected;
-
- // Paste
- //
- runTimeCommand -default true
- -annotation ("Paste Selected")
- -category ("Edit")
- -command ("cutCopyPaste \"paste\"")
- PasteSelected;
-
- // Delete.
- //
- runTimeCommand -default true
- -annotation ("Delete: Delete the selected object(s)")
- -category ("Edit")
- -command ("delete")
- Delete;
-
- // Delete history.
- //
- runTimeCommand -default true
- -annotation ("Delete History: Delete construction history on " +
- "the selected object(s)")
- -category ("Edit")
- -command ("delete -ch")
- DeleteHistory;
-
- // Delete Channels.
- //
- runTimeCommand -default true
- -annotation ("Delete Channels: Delete channels on the selected object(s)")
- -category ("Edit")
- -command ("performDeleteChannels false")
- DeleteChannels;
-
- runTimeCommand -default true
- -annotation ("Delete Channels Options")
- -category ("Edit")
- -command ("performDeleteChannels true")
- DeleteChannelsOptions;
-
- // Delete Static Channels.
- //
- runTimeCommand -default true
- -annotation ("Delete Static Channels: Delete static channels " +
- "on the selected object(s)")
- -category ("Edit")
- -command ("performDeleteStaticChannels false")
- DeleteStaticChannels;
-
- runTimeCommand -default true
- -annotation ("Delete Static Channels Options")
- -category ("Edit")
- -command ("performDeleteStaticChannels true")
- DeleteStaticChannelsOptions;
-
- // Delete Motion Paths.
- //
- runTimeCommand -default true
- -annotation ("Delete Motion Paths: Delete motion paths on " +
- "the selected object(s)")
- -category ("Edit")
- -command ("delete -mp")
- DeleteMotionPaths;
-
- // Delete Expressions.
- //
- runTimeCommand -default true
- -annotation ("Delete Expressions: Delete expressions on " +
- "the selected object(s)")
- -category ("Edit")
- -command ("performDeleteExpressions false")
- DeleteExpressions;
-
- runTimeCommand -default true
- -annotation ("Delete Expressions Options")
- -category ("Edit")
- -command ("performDeleteExpressions true")
- DeleteExpressionsOptions;
-
- // Delete Constraints.
- //
- runTimeCommand -default true
- -annotation ("Delete Constraints: Delete constraints on the " +
- "selected object(s)")
- -category ("Edit")
- -command ("delete -constraints")
- DeleteConstraints;
-
- // Delete Rigid Bodies.
- //
- runTimeCommand -default true
- -annotation ("Delete Rigid Bodies: Delete rigid bodies " +
- "on the selected object(s)")
- -category ("Edit")
- -command ("deleteSelectRigidBodies")
- DeleteRigidBodies;
-
- // Delete all History.
- //
- runTimeCommand -default true
- -annotation ("Delete All History: Delete History on all objects")
- -category ("Edit")
- -command ("delete -all -constructionHistory")
- DeleteAllHistory;
-
- // Delete all Channels.
- //
- runTimeCommand -default true
- -annotation ("Delete All Channels")
- -category ("Edit")
- -command ("delete -all -channels")
- DeleteAllChannels;
-
- // Delete all Static Channels.
- //
- runTimeCommand -default true
- -annotation ("Delete All Static Channels")
- -category ("Edit")
- -command ("delete -all -staticChannels")
- DeleteAllStaticChannels;
-
- // Delete all Clips.
- //
- runTimeCommand -default true
- -annotation ("Delete All Clips")
- -category ("Edit")
- -command ("delete `clip -q -allClips`")
- DeleteAllClips;
-
- // Delete all Poses.
- //
- runTimeCommand -default true
- -annotation ("Delete All Poses")
- -category ("Edit")
- -command ("delete `pose -q -allPoses`")
- DeleteAllPoses;
-
- // Delete all Motion Paths.
- //
- runTimeCommand -default true
- -annotation ("Delete All Motion Paths")
- -category ("Edit")
- -command ("delete -all -motionPaths")
- DeleteAllMotionPaths;
-
- // Delete all Expressions.
- //
- runTimeCommand -default true
- -annotation ("Delete All Expressions")
- -category ("Edit")
- -command ("delete -all -expressions")
- DeleteAllExpressions;
-
- // Delete all Constraints.
- //
- runTimeCommand -default true
- -annotation ("Delete All Constraints")
- -category ("Edit")
- -command ("delete -all -constraints")
- DeleteAllConstraints;
-
- // Delete all Sounds.
- //
- runTimeCommand -default true
- -annotation ("Delete All Sounds")
- -category ("Edit")
- -command ("delete `ls -type audio`")
- DeleteAllSounds;
-
- // Delete all Joints.
- //
- runTimeCommand -default true
- -annotation ("Delete All Joints")
- -category ("Edit")
- -command ("delete `ls -type joint`")
- DeleteAllJoints;
-
- // Delete all IK Handles.
- //
- runTimeCommand -default true
- -annotation ("Delete All IK Handles")
- -category ("Edit")
- -command ("delete `ls -type ikHandle`")
- DeleteAllIKHandles;
-
- // Delete all Lattices.
- //
- runTimeCommand -default true
- -annotation ("Delete All Lattices")
- -category ("Edit")
- -command ("delete `ls -type ffd`; delete `ls -type lattice`")
- DeleteAllLattices;
-
- // Delete all Clusters.
- //
- runTimeCommand -default true
- -annotation ("Delete All Clusters")
- -category ("Edit")
- -command ("delete `ls -type cluster`")
- DeleteAllClusters;
-
- // Delete all Sculpt Objects.
- //
- runTimeCommand -default true
- -annotation ("Delete All Sculpt Objects")
- -category ("Edit")
- -command ("delete `ls -type sculpt`; " +
- "delete `ls -type implicitSphere`")
- DeleteAllSculptObjects;
-
- // Delete all Wires.
- //
- runTimeCommand -default true
- -annotation ("Delete All Wires")
- -category ("Edit")
- -command ("delete `ls -type wire`")
- DeleteAllWires;
-
- // Delete all Non-linear Deformers.
- //
- runTimeCommand -default true
- -annotation ("Delete All Nonlinear Deformers")
- -category ("Edit")
- -command ("delete `ls -type nonLinear`")
- DeleteAllNonLinearDeformers;
-
- // Delete all Lights.
- //
- runTimeCommand -default true
- -annotation ("Delete All Lights")
- -category ("Edit")
- -command ("delete `listTransforms -lights`")
- DeleteAllLights;
-
- // Delete all Cameras.
- //
- runTimeCommand -default true
- -annotation ("Delete All Cameras")
- -category ("Edit")
- -command ("delete `listTransforms -cameras`")
- DeleteAllCameras;
-
- // Delete all Image Planes.
- //
- runTimeCommand -default true
- -annotation ("Delete All Image Planes")
- -category ("Edit")
- -command ("delete `ls -type imagePlane`")
- DeleteAllImagePlanes;
-
- // Delete all Shading Groups and Materials.
- //
- runTimeCommand -default true
- -annotation ("Delete All Shading Groups and Materials")
- -category ("Edit")
- -command ("deleteShadingGroupsAndMaterials")
- DeleteAllShadingGroupsAndMaterials;
-
- // Delete all Particles.
- //
- runTimeCommand -default true
- -annotation ("Delete All Particles")
- -category ("Edit")
- -command ("delete `listTransforms \"-type particle\"`")
- DeleteAllParticles;
-
- // Delete all Fluids.
- //
- if( !`about -mac` ) {
- runTimeCommand -default true
- -annotation ("Delete All Fluids")
- -category ("Edit")
- -command ("delete `listTransforms \"-type fluidShape\"`")
- DeleteAllFluids;
- }
-
- // Delete all Rigid Bodies.
- //
- runTimeCommand -default true
- -annotation ("Delete All Rigid Bodies")
- -category ("Edit")
- -command ("delete `ls -type rigidBody`")
- DeleteAllRigidBodies;
-
- // Delete all Rigid Constraints.
- //
- runTimeCommand -default true
- -annotation ("Delete All Rigid Constraints")
- -category ("Edit")
- -command ("delete `ls -type rigidConstraint`")
- DeleteAllRigidConstraints;
-
- // Delete all Strokes.
- //
- runTimeCommand -default true
- -annotation ("Delete All Strokes")
- -category ("Edit")
- -command ("deleteAllStrokes()")
- DeleteAllStrokes;
-
- // Select all.
- //
- runTimeCommand -default true
- -annotation ("Select All")
- -category ("Edit")
- -command ("select -allDagObjects")
- SelectAll;
-
- // Invert Selection.
- //
- runTimeCommand -default true
- -annotation ("Invert Selection")
- -category ("Edit")
- -command ("select -toggle -allDagObjects -visible")
- InvertSelection;
-
- // Select all Joints.
- //
- runTimeCommand -default true
- -annotation ("Select All Joints")
- -category ("Edit")
- -command ("select -r `ls -type joint`")
- SelectAllJoints;
-
- // Select all IK Handles.
- //
- runTimeCommand -default true
- -annotation ("Select All IK Handles")
- -category ("Edit")
- -command ("select -r `ls -type ikHandle`")
- SelectAllIKHandles;
-
- // Select all Lattices.
- //
- runTimeCommand -default true
- -annotation ("Select All Lattices")
- -category ("Edit")
- -command ("select -r `listTransforms \"-type lattice\"`")
- SelectAllLattices;
-
- // Select all Clusters.
- //
- runTimeCommand -default true
- -annotation ("Select All Clusters")
- -category ("Edit")
- -command ("select `listTransforms \"-type clusterHandle\"`")
- SelectAllClusters;
-
- // Select all Sculpt Objects.
- //
- runTimeCommand -default true
- -annotation ("Select All Sculpt Objects")
- -category ("Edit")
- -command ("select -r `listTransforms \" -type implicitSphere -type sculpt\"`")
- SelectAllSculptObjects;
-
- // Select all Wires.
- //
- runTimeCommand -default true
- -annotation ("Select All Wires")
- -category ("Edit")
- -command ("select -r `ls -type wire`")
- SelectAllWires;
-
- // Select all Transforms.
- //
- runTimeCommand -default true
- -annotation ("Select All Transforms")
- -category ("Edit")
- -command ("select -r `ls -type transform`")
- SelectAllTransforms;
-
- // Select all Geometry.
- //
- runTimeCommand -default true
- -annotation ("Select All Geometry")
- -category ("Edit")
- -command ("select -r `listTransforms -geometry`")
- SelectAllGeometry;
-
- // Select all NURBS Curves.
- //
- runTimeCommand -default true
- -annotation ("Select All NURBS Curves")
- -category ("Edit")
- -command ("select -r `listTransforms \"-type nurbsCurve\"`")
- SelectAllNURBSCurves;
-
- // Select all NURBS Surfaces.
- //
- runTimeCommand -default true
- -annotation ("Select All NURBS Surfaces")
- -category ("Edit")
- -command ("select -r `listTransforms \"-type nurbsSurface\"`")
- SelectAllNURBSSurfaces;
-
- // Select all Polygon Geometry.
- //
- runTimeCommand -default true
- -annotation ("Select All Polygon Geometry")
- -category ("Edit")
- -command ("select -r `listTransforms \"-type mesh\"`")
- SelectAllPolygonGeometry;
-
- // Select all Subdiv Geometry.
- //
- runTimeCommand -default true
- -annotation ("Select All Subdiv Geometry")
- -category ("Edit")
- -command ("select -r `listTransforms \"-type subdiv\"`")
- SelectAllSubdivGeometry;
-
- // Select all Lights.
- //
- runTimeCommand -default true
- -annotation ("Select All Lights")
- -category ("Edit")
- -command ("select -r `listTransforms -lights`")
- SelectAllLights;
-
- // Select all Cameras.
- //
- runTimeCommand -default true
- -annotation ("Select All Cameras")
- -category ("Edit")
- -command ("select -r `listTransforms -cameras`")
- SelectAllCameras;
-
- // Select all Image Planes.
- //
- runTimeCommand -default true
- -annotation ("Select All Image Planes")
- -category ("Edit")
- -command ("select -r `ls -type imagePlane`")
- SelectAllImagePlanes;
-
- // Select all Particles.
- //
- runTimeCommand -default true
- -annotation ("Select All Particles")
- -category ("Edit")
- -command ("select -r `listTransforms \"-type particle\"`")
- SelectAllParticles;
-
- // Select all Fluids.
- //
- if( !`about -mac` ) {
- runTimeCommand -default true
- -annotation ("Select All Fluids")
- -category ("Edit")
- -command ("select -r `listTransforms \"-type fluidShape\"`")
- SelectAllFluids;
- }
-
- // Select all Rigid Bodies.
- //
- runTimeCommand -default true
- -annotation ("Select All Rigid Bodies")
- -category ("Edit")
- -command ("select -r `listTransforms \"-type rigidBody\"`")
- SelectAllRigidBodies;
-
- // Select all Rigid Constraints.
- //
- runTimeCommand -default true
- -annotation ("Select All Rigid Constraints")
- -category ("Edit")
- -command ("select -r `ls -type rigidConstraint`")
- SelectAllRigidConstraints;
-
- // Select all Strokes.
- //
- runTimeCommand -default true
- -annotation ("Select All Strokes")
- -category ("Edit")
- -command ("select -r `listTransforms \"-type stroke\"`")
- SelectAllStrokes;
-
- // Select all Brushes.
- //
- runTimeCommand -default true
- -annotation ("Select All Brushes")
- -category ("Edit")
- -command ("select -r `ls -type brush`")
- SelectAllBrushes;
-
- // Paint Selection Tool.
- //
- runTimeCommand -default true
- -annotation ("Paint Selection Tool: Paint selection of CVs, vertices, "
- + "faces, and edges")
- -category ("Edit")
- -command ("artSelectToolScript 4")
- ArtPaintSelectTool;
-
- runTimeCommand -default true
- -annotation ("Artisan Paint Select Tool Options")
- -category ("Edit")
- -command ("artSelectToolScript 3")
- ArtPaintSelectToolOptions;
-
- runTimeCommand -default true
- -annotation ("Select Hierarchy")
- -category ("Edit")
- -command ("select -hierarchy")
- SelectHierarchy;
-
- // Duplicate.
- //
- runTimeCommand -default true
- -annotation ("Duplicate: Duplicate the selected object(s)")
- -category ("Edit")
- -command ("performDuplicate false")
- Duplicate;
-
- runTimeCommand -default true
- -annotation ("Duplicate Options")
- -category ("Edit")
- -command ("performDuplicate true")
- DuplicateOptions;
-
- runTimeCommand -default true
- -annotation ("Duplicate with Transform")
- -category ("Edit")
- -command ("evalEcho(\"duplicate -smartTransform\")")
- DuplicateWithTransform;
-
- // Group.
- //
- runTimeCommand -default true
- -annotation ("Group: Group the selected object(s)")
- -category ("Edit")
- -command ("performGroup false")
- Group;
-
- runTimeCommand -default true
- -annotation ("Group Options")
- -category ("Edit")
- -command ("performGroup true")
- GroupOptions;
-
- // Ungroup.
- //
- runTimeCommand -default true
- -annotation ("Ungroup: Ungroup the selected object(s)")
- -category ("Edit")
- -command ("performUngroup false")
- Ungroup;
-
- runTimeCommand -default true
- -annotation ("Ungroup Options")
- -category ("Edit")
- -command ("performUngroup true")
- UngroupOptions;
-
- // Create Empty Group.
- //
- runTimeCommand -default true
- -annotation ("Create Empty Group: Create a transform node " +
- "with no children")
- -category ("Edit")
- -command ("group -empty")
- CreateEmptyGroup;
-
- // Level of Detail Group/Ungroup.
- //
- runTimeCommand -default true
- -annotation ("Group Level of Detail: Select 2 or more " +
- "transforms, high resolution first")
- -category ("Edit")
- -command ("performSetupLod")
- LevelOfDetailGroup;
-
- runTimeCommand -default true
- -annotation ("Ungroup Level of Detail: Ungroup the selected " +
- "Level of Detail object(s)")
- -category ("Edit")
- -command ("performDeleteLod")
- LevelOfDetailUngroup;
-
- // Parent.
- //
- runTimeCommand -default true
- -annotation ("Parent: Parent the selected object(s) to the " +
- "last selected object")
- -category ("Edit")
- -command ("performParent false")
- Parent;
-
- runTimeCommand -default true
- -annotation ("Parent Options")
- -category ("Edit")
- -command ("performParent true")
- ParentOptions;
-
- // Unparent.
- //
- runTimeCommand -default true
- -annotation ("Unparent: Unparent the selected object(s)")
- -category ("Edit")
- -command ("performUnparent false")
- Unparent;
-
- runTimeCommand -default true
- -annotation ("Unparent Options")
- -category ("Edit")
- -command ("performUnparent true")
- UnparentOptions;
-
- // Sets and Partitions.
- //
- runTimeCommand -default true
- -annotation ("Create Set: Make a set containing the selected object(s)")
- -category ("Edit")
- -command ("performCreateSet false")
- CreateSet;
-
- runTimeCommand -default true
- -annotation ("Create Set Options")
- -category ("Edit")
- -command ("performCreateSet true")
- CreateSetOptions;
-
- runTimeCommand -default true
- -annotation ("Create Partition: Make a partition containing " +
- "the selected set(s)")
- -category ("Edit")
- -command ("performCreatePartition false")
- CreatePartition;
-
- runTimeCommand -default true
- -annotation ("Create Partition Options")
- -category ("Edit")
- -command ("performCreatePartition true")
- CreatePartitionOptions;
-
- runTimeCommand -default true
- -annotation ("Create Quick Select Set: Create set and add " +
- "it to the Quick Select Set menu")
- -category ("Edit")
- -command ("defineCharacter")
- CreateQuickSelectSet;
-
- //
- // Modify menu.
- //
- // ----------------------------------------------------------------------
-
- runTimeCommand -default true
- -annotation ("Move/Rotate/Scale Tool: Toggle Relative Snap Mode")
- -category ("Modify")
- -command ("manipMoveContext -e -snap (!`manipMoveContext -q -snap Move`) Move;" +
- "manipMoveContext -e -snapRelative (!`manipMoveContext -q -snapRelative Move `) Move;" +
- "manipRotateContext -e -snap (!`manipRotateContext -q -snap Rotate`) Rotate;" +
- "manipRotateContext -e -snapRelative (!`manipRotateContext -q -snapRelative Rotate`) Rotate;" +
- "manipScaleContext -e -snap (!`manipScaleContext -q -snap Scale`) Scale;" +
- "manipScaleContext -e -snapRelative (!`manipScaleContext -q -snapRelative Scale`) Scale;"
- )
- MoveRotateScaleToolToggleSnapRelativeMode;
-
- runTimeCommand -default true
- -annotation ("Move Tool: Select any object(s) or component(s)")
- -category ("Modify")
- -command ("setToolTo $gMove")
- MoveTool;
-
- runTimeCommand -default true
- -annotation ("Move Tool Options")
- -category ("Modify")
- -command ("setToolTo $gMove; toolPropertyWindow")
- MoveToolOptions;
-
- runTimeCommand -default true
- -annotation ("Rotate Tool: Select any object(s) or component(s)")
- -category ("Modify")
- -command ("setToolTo $gRotate")
- RotateTool;
-
- runTimeCommand -default true
- -annotation ("Move/Rotate/Scale Tool Toggle Snap Mode")
- -category ("Modify")
- -command ("manipRotateContext -e -snap (!`manipRotateContext -q -snap Rotate`) Rotate;" +
- "manipMoveContext -e -snap (!`manipMoveContext -q -snap Move`) Move;" +
- "manipScaleContext -e -snap (!`manipScaleContext -q -snap Scale`) Scale;")
- MoveRotateScaleToolToggleSnapMode;
-
- runTimeCommand -default true
- -annotation ("Rotate Tool Options")
- -category ("Modify")
- -command ("setToolTo $gRotate; toolPropertyWindow")
- RotateToolOptions;
-
- runTimeCommand -default true
- -annotation ("Scale Tool: Select any object(s) or component(s)")
- -category ("Modify")
- -command ("setToolTo $gScale")
- ScaleTool;
-
- runTimeCommand -default true
- -annotation ("Scale Tool Options")
- -category ("Modify")
- -command ("setToolTo $gScale; toolPropertyWindow")
- ScaleToolOptions;
-
- runTimeCommand -default true
- -annotation ("Move/Rotate/Scale Tool: Select any object(s) " +
- "or component(s)")
- -category ("Modify")
- -command ("setToolTo $gTransform")
- MoveRotateScaleTool;
-
- runTimeCommand -default true
- -annotation ("Move Normal Tool: Select any NURBS control " +
- "vertices, mesh vertices")
- -category ("Modify")
- -command ("setToolTo $gMoveNormal")
- MoveNormalTool;
-
- runTimeCommand -default true
- -annotation ("Move Normal Tool Options")
- -category ("Modify")
- -command ("setToolTo $gMoveNormal; toolPropertyWindow")
- MoveNormalToolOptions;
-
- runTimeCommand -default true
- -annotation ("Show Manipulator Tool: Select any node")
- -category ("Modify")
- -command ("setToolTo $gshowManip")
- ShowManipulatorTool;
-
- runTimeCommand -default true
- -annotation ("Proportional Modification Tool: Select objects " +
- "or components to proportionally modify them")
- -category ("Modify")
- -command ("setToolTo $gPropMod")
- ProportionalModificationTool;
-
- runTimeCommand -default true
- -annotation ("Reset Transformation: Select an object(s)")
- -category ("Modify")
- -command ("performResetTransformations(0)")
- ResetTransformations;
-
- runTimeCommand -default true
- -annotation ("Reset Transformation Options")
- -category ("Modify")
- -command ("performResetTransformations 1")
- ResetTransformationsOptions;
-
- runTimeCommand -default true
- -annotation ("Freeze Transformation: Select an object(s)")
- -category ("Modify")
- -command ("performFreezeTransformations(0)")
- FreezeTransformations;
-
- runTimeCommand -default true
- -annotation ("Freeze Transformation Options")
- -category ("Modify")
- -command ("performFreezeTransformations 1")
- FreezeTransformationsOptions;
-
- runTimeCommand -default true
- -annotation ("Snap Point to Point: Select any type of point " +
- "object or component")
- -category ("Modify")
- -command ("snapPointToPoint(0)")
- SnapPointToPoint;
-
- runTimeCommand -default true
- -annotation ("Snap Point to Point Options")
- -category ("Modify")
- -command ("performSnapPtToPt 1")
- SnapPointToPointOptions;
-
- runTimeCommand -default true
- -annotation ("Snap 2 Points to 2 Points: Select any type of " +
- "point object or component")
- -category ("Modify")
- -command ("performSnap2PtTo2Pt 0")
- Snap2PointsTo2Points;
-
- runTimeCommand -default true
- -annotation ("Snap 2 Points to 2 Points Options")
- -category ("Modify")
- -command ("performSnap2PtTo2Pt 1")
- Snap2PointsTo2PointsOptions;
-
- runTimeCommand -default true
- -annotation ("Snap 3 Points to 3 Points: Select any type of " +
- "point object or component")
- -category ("Modify")
- -command ("performSnap3PtTo3Pt 0")
- Snap3PointsTo3Points;
-
- runTimeCommand -default true
- -annotation ("Snap 3 Points to 3 Points Options")
- -category ("Modify")
- -command ("performSnap3PtTo3Pt 1")
- Snap3PointsTo3PointsOptions;
-
- runTimeCommand -default true
- -annotation ("Enable All: Enable evaluation of all nodes")
- -category ("Modify")
- -command ("doEnableNodeItems true all")
- EnableAll;
-
- runTimeCommand -default true
- -annotation ("Enable IK Solvers: Enable evaluation of all IK solvers")
- -category ("Modify")
- -command ("doEnableNodeItems true iksolver")
- EnableIKSolvers;
-
- runTimeCommand -default true
- -annotation ("Enable Constraints: Enable evaluation of all Constraints")
- -category ("Modify")
- -command ("doEnableNodeItems true constraint")
- EnableConstraints;
-
- runTimeCommand -default true
- -annotation ("Enable Expressions: Enable evaluation of all Expressions")
- -category ("Modify")
- -command ("doEnableNodeItems true expression")
- EnableExpressions;
-
- if( !`about -mac` ) {
- runTimeCommand -default true
- -annotation ("Enable Fluids: Enable evaluation of all Fluids")
- -category ("Modify")
- -command ("doEnableNodeItems true fluid")
- EnableFluids;
- }
-
- runTimeCommand -default true
- -annotation ("Enable Global Stitch: Enable evaluation of all Global Stitch nodes")
- -category ("Modify")
- -command ("doEnableNodeItems true globalstitch")
- EnableGlobalStitch;
-
- runTimeCommand -default true
- -annotation ("Enable Particles: Enable evaluation of all Particles")
- -category ("Modify")
- -command ("doEnableNodeItems true particle")
- EnableParticles;
-
- runTimeCommand -default true
- -annotation ("Enable Rigid Bodies: Enable evaluation of all Rigid Bodies")
- -category ("Modify")
- -command ("doEnableNodeItems true rigidbody")
- EnableRigidBodies;
-
- runTimeCommand -default true
- -annotation ("Enable Snapshots: Enable evaluation of all Snapshot nodes")
- -category ("Modify")
- -command ("doEnableNodeItems true snapshot")
- EnableSnapshots;
-
- runTimeCommand -default true
- -annotation ("Disable All: Disable evaluation of all nodes")
- -category ("Modify")
- -command ("doEnableNodeItems false all")
- DisableAll;
-
- runTimeCommand -default true
- -annotation ("Disable IK Solvers: Disable evaluation of all IK solvers")
- -category ("Modify")
- -command ("doEnableNodeItems false iksolver")
- DisableIKSolvers;
-
- runTimeCommand -default true
- -annotation ("Disable Constraints: Disable evaluation of all Constraints")
- -category ("Modify")
- -command ("doEnableNodeItems false constraint")
- DisableConstraints;
-
- runTimeCommand -default true
- -annotation ("Disable Expressions: Disable evaluation of all Expressions")
- -category ("Modify")
- -command ("doEnableNodeItems false expression")
- DisableExpressions;
-
- if( !`about -mac` ) {
- runTimeCommand -default true
- -annotation ("Disable Fluids: Disable evaluation of all Fluids")
- -category ("Modify")
- -command ("doEnableNodeItems false fluid")
- DisableFluids;
- }
-
- runTimeCommand -default true
- -annotation ("Disable Global Stitch: Disable evaluation of all Global Stitch nodes")
- -category ("Modify")
- -command ("doEnableNodeItems false globalstitch")
- DisableGlobalStitch;
-
- runTimeCommand -default true
- -annotation ("Disable Particles: Disable evaluation of all Particles")
- -category ("Modify")
- -command ("doEnableNodeItems false particle")
- DisableParticles;
-
- runTimeCommand -default true
- -annotation ("Disable Rigid Bodies: Disable evaluation of all " +
- "Rigid Bodies")
- -category ("Modify")
- -command ("doEnableNodeItems false rigidbody")
- DisableRigidBodies;
-
- runTimeCommand -default true
- -annotation ("Disable Snapshots: Disable evaluation of all " +
- "Snapshot nodes")
- -category ("Modify")
- -command ("doEnableNodeItems false snapshot")
- DisableSnapshots;
-
- runTimeCommand -default true
- -annotation ("Make Live: Select a surface")
- -category ("Modify")
- -command ("makeLive")
- MakeLive;
-
- runTimeCommand -default true
- -annotation ("Center Pivot: Select an object(s)")
- -category ("Modify")
- -command ("xform -cp")
- CenterPivot;
-
- runTimeCommand -default true
- -annotation ("Prefix Hierarchy Names: Add a prefix to all " +
- "hierarchy names")
- -category ("Modify")
- -command ("prefixHierarchy")
- PrefixHierarchyNames;
-
- runTimeCommand -default true
- -annotation ("Add Attribute")
- -category ("Modify")
- -command ("dynAddAttrWin( {} )")
- AddAttribute;
-
- runTimeCommand -default true
- -annotation ("Delete Attribute")
- -category ("Modify")
- -command ("dynDeleteAttrWin( {} )")
- DeleteAttribute;
-
- runTimeCommand -default true
- -annotation ("Rename Attribute")
- -category ("Modify")
- -command ("dynRenameAttrWin( {} )")
- RenameAttribute;
-
- runTimeCommand -default true
- -annotation ("Script Paint Tool: Paint custom effects defined " +
- "in a MEL script on a surface")
- -category ("Modify")
- -command ("artUserPaintToolScript 4")
- ScriptPaintTool;
-
- runTimeCommand -default true
- -annotation ("Script Paint Tool Options")
- -category ("Modify")
- -command ("artUserPaintToolScript 3")
- ScriptPaintToolOptions;
-
-
- // General Attribute Paint Tool
- runTimeCommand -default true
- -annotation ("Attribute Paint Tool: Paint")
- -category ("Modify")
- -command ("artAttrToolScript 4 \"\"")
- ArtPaintAttrTool;
-
- runTimeCommand -default true
- -annotation ("Attribute Paint Tool Options")
- -category ("Modify")
- -command ("artAttrToolScript 3 \"\" ")
- ArtPaintAttrToolOptions;
-
-
- //
- // Create menu.
- //
- // ----------------------------------------------------------------------
-
- // Create NURBS primitives.
- //
- runTimeCommand -default true
- -annotation ("NURBS Sphere: Create a NURBS sphere on the grid")
- -category ("Create")
- -command ("performNurbsSphere 0")
- CreateNURBSSphere;
-
- runTimeCommand -default true
- -annotation ("NURBS Sphere Options")
- -category ("Create")
- -command ("performNurbsSphere 1")
- CreateNURBSSphereOptions;
-
- runTimeCommand -default true
- -annotation ("NURBS Cube: Create a NURBS cube on the grid")
- -category ("Create")
- -command ("performNurbsCube 0")
- CreateNURBSCube;
-
- runTimeCommand -default true
- -annotation ("NURBS Cube Options")
- -category ("Create")
- -command ("performNurbsCube 1")
- CreateNURBSCubeOptions;
-
- runTimeCommand -default true
- -annotation ("NURBS Cylinder: Create a NURBS cylinder on the grid")
- -category ("Create")
- -command ("performNurbsCylinder 0")
- CreateNURBSCylinder;
-
- runTimeCommand -default true
- -annotation ("NURBS Cylinder Options")
- -category ("Create")
- -command ("performNurbsCylinder 1")
- CreateNURBSCylinderOptions;
-
- runTimeCommand -default true
- -annotation ("NURBS Cone: Create a NURBS cone on the grid")
- -category ("Create")
- -command ("performNurbsCone 0")
- CreateNURBSCone;
-
- runTimeCommand -default true
- -annotation ("NURBS Cone Options")
- -category ("Create")
- -command ("performNurbsCone 1")
- CreateNURBSConeOptions;
-
- runTimeCommand -default true
- -annotation ("NURBS Plane: Create a NURBS plane on the grid")
- -category ("Create")
- -command ("performNurbsPlane 0")
- CreateNURBSPlane;
-
- runTimeCommand -default true
- -annotation ("NURBS Plane Options")
- -category ("Create")
- -command ("performNurbsPlane 1")
- CreateNURBSPlaneOptions;
-
- runTimeCommand -default true
- -annotation ("NURBS Torus: Create a NURBS torus on the grid")
- -category ("Create")
- -command ("performNurbsTorus 0")
- CreateNURBSTorus;
-
- runTimeCommand -default true
- -annotation ("NURBS Torus Options")
- -category ("Create")
- -command ("performNurbsTorus 1")
- CreateNURBSTorusOptions;
-
- runTimeCommand -default true
- -annotation ("NURBS Circle: Create a NURBS circle on the grid")
- -category ("Create")
- -command ("performNurbsCircle 0")
- CreateNURBSCircle;
-
- runTimeCommand -default true
- -annotation ("NURBS Circle Options")
- -category ("Create")
- -command ("performNurbsCircle 1")
- CreateNURBSCircleOptions;
-
- runTimeCommand -default true
- -annotation ("NURBS Square: Create a NURBS square on the grid")
- -category ("Create")
- -command ("performNurbsSquare 0")
- CreateNURBSSquare;
-
- runTimeCommand -default true
- -annotation ("NURBS Square Options")
- -category ("Create")
- -command ("performNurbsSquare 1")
- CreateNURBSSquareOptions;
-
- // Create Polygon primitives.
- //
- runTimeCommand -default true
- -annotation ("Polygon Sphere: Create a polygonal sphere on the grid")
- -category ("Create")
- -command ("performPolyPrimitive Sphere 0")
- CreatePolygonSphere;
-
- runTimeCommand -default true
- -annotation ("Polygon Sphere Options")
- -category ("Create")
- -command ("performPolyPrimitive Sphere 1")
- CreatePolygonSphereOptions;
-
- runTimeCommand -default true
- -annotation ("Polygon Cube: Create a polygonal cube on the grid")
- -category ("Create")
- -command ("performPolyPrimitive Cube 0")
- CreatePolygonCube;
-
- runTimeCommand -default true
- -annotation ("Polygon Cube Options")
- -category ("Create")
- -command ("performPolyPrimitive Cube 1")
- CreatePolygonCubeOptions;
-
- runTimeCommand -default true
- -annotation ("Polygon Cylinder: Create a polygonal cylinder on the grid")
- -category ("Create")
- -command ("performPolyPrimitive Cylinder 0")
- CreatePolygonCylinder;
-
- runTimeCommand -default true
- -annotation ("Polygon Cylinder Options")
- -category ("Create")
- -command ("performPolyPrimitive Cylinder 1")
- CreatePolygonCylinderOptions;
-
- runTimeCommand -default true
- -annotation ("Polygon Cone: Create a polygonal cone on the grid")
- -category ("Create")
- -command ("performPolyPrimitive Cone 0")
- CreatePolygonCone;
-
- runTimeCommand -default true
- -annotation ("Polygon Cone Options")
- -category ("Create")
- -command ("performPolyPrimitive Cone 1")
- CreatePolygonConeOptions;
-
- runTimeCommand -default true
- -annotation ("Polygon Plane: Create a polygonal plane on the grid")
- -category ("Create")
- -command ("performPolyPrimitive Plane 0")
- CreatePolygonPlane;
-
- runTimeCommand -default true
- -annotation ("Polygon Plane Options")
- -category ("Create")
- -command ("performPolyPrimitive Plane 1")
- CreatePolygonPlaneOptions;
-
- runTimeCommand -default true
- -annotation ("Polygon Torus: Create a polygonal torus on the grid")
- -category ("Create")
- -command ("performPolyPrimitive Torus 0")
- CreatePolygonTorus;
-
- runTimeCommand -default true
- -annotation ("Polygon Torus Options")
- -category ("Create")
- -command ("performPolyPrimitive Torus 1")
- CreatePolygonTorusOptions;
-
- // Create Subdiv primitives.
- //
- runTimeCommand -default true
- -annotation ("Subdiv Sphere: Create a subdiv sphere on the grid")
- -category ("Create")
- -command ("createSubdSphere")
- CreateSubdivSphere;
-
- runTimeCommand -default true
- -annotation ("Subdiv Cube: Create a subdiv cube on the grid")
- -category ("Create")
- -command ("createSubdCube")
- CreateSubdivCube;
-
- runTimeCommand -default true
- -annotation ("Subdiv Cylinder: Create a subdiv cylinder on the grid")
- -category ("Create")
- -command ("createSubdCylinder")
- CreateSubdivCylinder;
-
- runTimeCommand -default true
- -annotation ("Subdiv Cone: Create a subdiv cone on the grid")
- -category ("Create")
- -command ("createSubdCone")
- CreateSubdivCone;
-
- runTimeCommand -default true
- -annotation ("Subdiv Plane: Create a subdiv plane on the grid")
- -category ("Create")
- -command ("createSubdPlane")
- CreateSubdivPlane;
-
- runTimeCommand -default true
- -annotation ("Subdiv Torus: Create a subdiv torus on the grid")
- -category ("Create")
- -command ("createSubdTorus")
- CreateSubdivTorus;
-
- // Create Volume primitives.
- //
- runTimeCommand -default true
- -annotation ("Volume Sphere: Create a volume sphere on the grid")
- -category ("Create")
- -command ("createImplicitVolume sphere")
- CreateVolumeSphere;
-
- runTimeCommand -default true
- -annotation ("Volume Cube: Create a volume cube on the grid")
- -category ("Create")
- -command ("createImplicitVolume cube")
- CreateVolumeCube;
-
- runTimeCommand -default true
- -annotation ("Volume Cone: Create a volume cone on the grid")
- -category ("Create")
- -command ("createImplicitVolume cone")
- CreateVolumeCone;
-
- // Create lights.
- //
- runTimeCommand -default true
- -annotation ("Ambient Light: Create an ambient light " +
- "on the grid or live surface")
- -category ("Create")
- -command ("performAmbientLight(0)")
- CreateAmbientLight;
-
- runTimeCommand -default true
- -annotation ("Ambient Light Options")
- -category ("Create")
- -command ("performAmbientLight(1)")
- CreateAmbientLightOptions;
-
- runTimeCommand -default true
- -annotation ("Directional Light: Create a directional " +
- "light on the grid or live surface")
- -category ("Create")
- -command ("performDirectionalLight(0)")
- CreateDirectionalLight;
-
- runTimeCommand -default true
- -annotation ("Directional Light Options")
- -category ("Create")
- -command ("performDirectionalLight(1)")
- CreateDirectionalLightOptions;
-
- runTimeCommand -default true
- -annotation ("Point Light: Create a point light on " +
- "the grid or live surface")
- -category ("Create")
- -command ("performPointLight(0)")
- CreatePointLight;
-
- runTimeCommand -default true
- -annotation ("Point Light Options")
- -category ("Create")
- -command ("performPointLight(1)")
- CreatePointLightOptions;
-
- runTimeCommand -default true
- -annotation ("Spot Light: Create a spot light on " +
- "the grid or live surface")
- -category ("Create")
- -command ("performSpotLight(0)")
- CreateSpotLight;
-
- runTimeCommand -default true
- -annotation ("Spot Light Options")
- -category ("Create")
- -command ("performSpotLight(1)")
- CreateSpotLightOptions;
-
- runTimeCommand -default true
- -annotation ("Area Light: Create an area light on " +
- "the grid or live surface")
- -category ("Create")
- -command ("performAreaLight(0)")
- CreateAreaLight;
-
- runTimeCommand -default true
- -annotation ("Area Light Options")
- -category ("Create")
- -command ("performAreaLight(1)")
- CreateAreaLightOptions;
-
- runTimeCommand -default true
- -annotation ("Volume Light: Create a volume light on " +
- "the grid or live surface")
- -category ("Create")
- -command ("performVolumeLight(0)")
- CreateVolumeLight;
-
- runTimeCommand -default true
- -annotation ("Volume Light Options")
- -category ("Create")
- -command ("performVolumeLight(1)")
- CreateVolumeLightOptions;
-
- // Create NURBS objects.
- //
- runTimeCommand -default true
- -annotation ("CV Curve Tool: Create a curve on the grid or " +
- "live surface specifying control vertices")
- -category ("Create")
- -command ("curveCVToolScript 4")
- CVCurveTool;
-
- runTimeCommand -default true
- -annotation ("CV Curve Tool Options")
- -category ("Create")
- -command ("curveCVToolScript 3")
- CVCurveToolOptions;
-
- runTimeCommand -default true
- -annotation ("EP Curve Tool: Create a curve on the grid or " +
- "live surface specifying edit points")
- -category ("Create")
- -command ("curveEPToolScript 4")
- EPCurveTool;
-
- runTimeCommand -default true
- -annotation ("EP Curve Tool Options")
- -category ("Create")
- -command ("curveEPToolScript 3")
- EPCurveToolOptions;
-
- runTimeCommand -default true
- -annotation ("Pencil Curve Tool: Create a curve on " +
- "the grid or live surface")
- -category ("Create")
- -command ("curveSketchToolScript 4")
- PencilCurveTool;
-
- runTimeCommand -default true
- -annotation ("Pencil Curve Tool Options")
- -category ("Create")
- -command ("curveSketchToolScript 3")
- PencilCurveToolOptions;
-
- runTimeCommand -default true
- -annotation ("Two Point Arc Tool: Create a circular arc on the " +
- "grid specifying two points")
- -category ("Create")
- -command ("twoPointArcToolScript 4")
- TwoPointArcTool;
-
- runTimeCommand -default true
- -annotation ("Two Point Arc Options")
- -category ("Create")
- -command ("twoPointArcToolScript 3")
- TwoPointArcToolOptions;
-
- runTimeCommand -default true
- -annotation ("Three Point Arc Tool: Create a circular arc on the " +
- "grid specifying three points")
- -category ("Create")
- -command ("threePointArcToolScript 4")
- ThreePointArcTool;
-
- runTimeCommand -default true
- -annotation ("Three Point Arc Options")
- -category ("Create")
- -command ("threePointArcToolScript 3")
- ThreePointArcToolOptions;
-
- runTimeCommand -default true
- -annotation ("Distance Tool: Measure distance between two points")
- -category ("Create")
- -command ("setToolTo distanceDimContext")
- DistanceTool;
-
- runTimeCommand -default true
- -annotation ("Parameter Tool: Display a curve/surface point's " +
- "parameter values")
- -category ("Create")
- -command ("setToolTo paramDimContext")
- ParameterTool;
-
- runTimeCommand -default true
- -annotation ("Arc Length Tool: Display a curve point's distance " +
- "from the start of the curve")
- -category ("Create")
- -command ("setToolTo arcLenDimContext")
- ArcLengthTool;
-
- runTimeCommand -default true
- -annotation ("Annotation: Add an annotation to the selected object")
- -category ("Create")
- -command ("annotateNode")
- CreateAnnotateNode;
-
- runTimeCommand -default true
- -annotation ("Text: Create text on the grid")
- -category ("Create")
- -command ("createPrimitive text")
- CreateText;
-
- runTimeCommand -default true
- -annotation ("Text Options")
- -category ("Create")
- -command ("performtextCurves 1")
- CreateTextOptions;
-
- runTimeCommand -default true
- -annotation ("Construction Plane: Create a construction plane on " +
- "the grid")
- -category ("Create")
- -command ("performCreateConstructionPlane(0)")
- CreateConstructionPlane;
-
- runTimeCommand -default true
- -annotation ("Construction Plane Options")
- -category ("Create")
- -command ("performCreateConstructionPlane 1")
- CreateConstructionPlaneOptions;
-
- runTimeCommand -default true
- -annotation ("Locator: Create a locator object on the grid")
- -category ("Create")
- -command ("createPrimitive nullObject")
- CreateLocator;
-
- runTimeCommand -default true
- -annotation ("Camera: Create a camera on the grid")
- -category ("Create")
- -command ("performCameraOnly false")
- CreateCameraOnly;
-
- runTimeCommand -default true
- -annotation ("Camera Options")
- -category ("Create")
- -command ("performCameraOnly true")
- CreateCameraOnlyOptions;
-
- runTimeCommand -default true
- -annotation ("Camera: Create a camera with aiming controls")
- -category ("Create")
- -command ("performCameraAim false")
- CreateCameraAim;
-
- runTimeCommand -default true
- -annotation ("Camera Options")
- -category ("Create")
- -command ("performCameraAim true")
- CreateCameraAimOptions;
-
- runTimeCommand -default true
- -annotation ("Camera: Create a camera with aiming and up-vector controls")
- -category ("Create")
- -command ("performCameraAimUp false")
- CreateCameraAimUp;
-
- runTimeCommand -default true
- -annotation ("Camera Options")
- -category ("Create")
- -command ("performCameraAimUp true")
- CreateCameraAimUpOptions;
-
- //
- // Display menu.
- //
- // ----------------------------------------------------------------------
-
- // Grid and Heads Up Display options.
- //
- runTimeCommand -default true
- -annotation ("Grid: Toggle the Grid visibility")
- -category ("Display")
- -command ("optionVar -intValue showGrid (!`optionVar -query showGrid`); grid -toggle (`optionVar -query showGrid`);")
- ToggleGrid;
-
- runTimeCommand -default true
- -annotation ("Grid Options")
- -category ("Display")
- -command ("performGridOptions 1")
- GridOptions;
-
- runTimeCommand -default true
- -annotation ("Object Details: Toggle the display of object details")
- -category ("Display")
- -command ("setObjectDetailsVisibility(!`optionVar -q objectDetailsVisibility`);")
- ToggleObjectDetails;
-
- runTimeCommand -default true
- -annotation ("Poly Count: Toggle the display of the component count for visible polygons")
- -category ("Display")
- -command ("setPolyCountVisibility(!`optionVar -q polyCountVisibility`);")
- TogglePolyCount;
-
- runTimeCommand -default true
- -annotation ("Camera Names: Toggle the display of the camera names")
- -category ("Display")
- -command ("setCameraNamesVisibility(!`optionVar -q cameraNamesVisibility`);")
- ToggleCameraNames;
-
- runTimeCommand -default true
- -annotation ("Frame Rate: Toggle the display of the frame rate")
- -category ("Display")
- -command ("setFrameRateVisibility(!`optionVar -q frameRateVisibility`);")
- ToggleFrameRate;
-
- runTimeCommand -default true
- -annotation ("View Axis: Toggle the visibility of the view axis")
- -category ("Display")
- -command ("setViewAxisVisibility(!`optionVar -q viewAxisVisibility`);")
- ToggleViewAxis;
-
- runTimeCommand -default true
- -annotation ("Origin Axis: Toggle the visibility of the origin axis")
- -category ("Display")
- -command ("toggleAxis -o (!`toggleAxis -q -o`);")
- ToggleOriginAxis;
-
- runTimeCommand -default true
- -annotation ("Aniamtion Details: Toggle the display of animation details")
- -category ("Display")
- -command ("setAnimationDetailsVisibility(!`optionVar -q animationDetailsVisibility`);")
- ToggleAnimationDetails;
-
- // UI Elements.
- //
- runTimeCommand -default true
- -annotation ("Status Line: Toggle the Status Line on/off")
- -category ("Display")
- -command ("toggleUIComponentVisibility \"Status Line\"; " +
- "updateMainWindowComponentState()")
- ToggleStatusLine;
-
- runTimeCommand -default true
- -annotation ("Shelf: Toggle the Shelf on/off")
- -category ("Display")
- -command ("toggleUIComponentVisibility \"Shelf\"; changeToolIcon; " +
- "updateMainWindowComponentState()")
- ToggleShelf;
-
- runTimeCommand -default true
- -annotation ("Time Slider: Toggle the Time Slider on/off")
- -category ("Display")
- -command ("toggleUIComponentVisibility \"Time Slider\"; " +
- "updateMainWindowComponentState()")
- ToggleTimeSlider;
-
- runTimeCommand -default true
- -annotation ("Range Slider: Toggle the Range Slider on/off")
- -category ("Display")
- -command ("toggleUIComponentVisibility \"Range Slider\"; " +
- "updateMainWindowComponentState()")
- ToggleRangeSlider;
-
- runTimeCommand -default true
- -annotation ("Command Line: Toggle the Command Line on/off")
- -category ("Display")
- -command ("toggleUIComponentVisibility \"Command Line\"; " +
- "updateMainWindowComponentState()")
- ToggleCommandLine;
-
- runTimeCommand -default true
- -annotation ("Help Line: Toggle the Help Line on/off")
- -category ("Display")
- -command ("toggleUIComponentVisibility \"Help Line\"; " +
- "updateMainWindowComponentState()")
- ToggleHelpLine;
-
- runTimeCommand -default true
- -annotation ("Toolbox: Toggle the Toolbox on/off")
- -category ("Display")
- -command ("toggleUIComponentVisibility \"Tool Box\"; " +
- "updateMainWindowComponentState()")
- ToggleToolbox;
-
- runTimeCommand -default true
- -annotation ("Attribute Editor: Toggle the Attribute Editor on/off")
- -category ("Display")
- -command ("toggleUIComponentVisibility \"Attribute Editor\"; " +
- "updateMainWindowComponentState()")
- ToggleAttributeEditor;
-
- runTimeCommand -default true
- -annotation ("Tool Settings: Toggle the Tool Settings on/off")
- -category ("Display")
- -command ("if (`isUIComponentVisible(\"Tool Settings\")`) {\r\n\ttoggleUIComponentVisibility(\"Tool Settings\");\r\n} else {\r\n\ttoolPropertyWindow -inMainWindow true;\r\n}\r\n; " +
- "updateMainWindowComponentState()")
- ToggleToolSettings;
-
- runTimeCommand -default true
- -annotation ("Channel Box / Layer Editor: Toggle the Channel Box / Layer Editor on/off")
- -category ("Display")
- -command ("if (`isUIComponentVisible(\"Channel Box / Layer Editor\")`) {\r\n\ttoggleUIComponentVisibility(\"Channel Box / Layer Editor\");\r\n} else {\r\n\tshowChannelsLayers(\"\");\r\n}\r\n; " +
- "updateMainWindowComponentState()")
- ToggleChannelsLayers;
-
- runTimeCommand -default true
- -annotation ("Channel Box: Toggle the Channel Box on/off")
- -category ("Display")
- -command ("if (`isUIComponentVisible(\"Channel Box / Layer Editor\")`) {\r\n\ttoggleUIComponentVisibility(\"Channel Box / Layer Editor\");\r\n} else {\r\n\tshowChannelsLayers(\"Channel Box\");\r\n}\r\n; " +
- "updateMainWindowComponentState()")
- ToggleChannelBox;
-
- runTimeCommand -default true
- -annotation ("Layer Editor: Toggle the Layer Editor on/off")
- -category ("Display")
- -command ("if (`isUIComponentVisible(\"Channel Box / Layer Editor\")`) {\r\n\ttoggleUIComponentVisibility(\"Channel Box / Layer Editor\");\r\n} else {\r\n\tshowChannelsLayers(\"Layer Editor\");\r\n}\r\n; " +
- "updateMainWindowComponentState()")
- ToggleLayerBar;
-
- runTimeCommand -default true
- -annotation ("Hide UI Elements: Show only the viewing panes")
- -category ("Display")
- -command ("setAllMainWindowComponentsVisible 0")
- HideUIElements;
-
- runTimeCommand -default true
- -annotation ("Show UI Elements: Show all the UI Elements")
- -category ("Display")
- -command ("setAllMainWindowComponentsVisible 1")
- ShowUIElements;
-
- runTimeCommand -default true
- -annotation ("Restore UI Elements: Return to state before Hide/Show " +
- "UI Elements")
- -category ("Display")
- -command ("restoreMainWindowComponents")
- RestoreUIElements;
-
- // Hide.
- //
- runTimeCommand -default true
- -annotation ("Hide Selection: Hide the selected object(s)")
- -category ("Display")
- -command ("hideKeepSelection `ls -sl`")
- HideSelectedObjects;
-
- runTimeCommand -default true
- -annotation ("Hide Unselected Objects: Hide all objects that are " +
- "not selected")
- -category ("Display")
- -command ("hideKeepSelection `listUnselected`")
- HideUnselectedObjects;
-
- runTimeCommand -default true
- -annotation ("Hide Unselected CVs: Hide all CVs on the surface " +
- "that are not selected")
- -category ("Display")
- -command ("selectiveCvsDisplay 1")
- HideUnselectedCVs;
-
- runTimeCommand -default true
- -annotation ("Hide All: Hide all objects")
- -category ("Display")
- -command ("hideKeepSelection `ls -dag`")
- HideAll;
-
- runTimeCommand -default true
- -annotation ("Hide All Geometry")
- -category ("Display")
- -command ("hideShow -geometry -hide")
- HideGeometry;
-
- runTimeCommand -default true
- -annotation ("Hide All NURBS Surfaces")
- -category ("Display")
- -command ("hideShow -nurbsSurfaces -hide")
- HideNURBSSurfaces;
-
- runTimeCommand -default true
- -annotation ("Hide All NURBS Curves")
- -category ("Display")
- -command ("hideShow -nurbsCurves -hide")
- HideNURBSCurves;
-
- runTimeCommand -default true
- -annotation ("Hide All Polygon Surfaces")
- -category ("Display")
- -command ("hideShow -polySurfaces -hide")
- HidePolygonSurfaces;
-
- runTimeCommand -default true
- -annotation ("Hide All Deforming Geometry")
- -category ("Display")
- -command ("hideShowDeformingGeom hide")
- HideDeformingGeometry;
-
- runTimeCommand -default true
- -annotation ("Hide All Subdiv Surfaces")
- -category ("Display")
- -command ("hideShow -subdiv -hide")
- HideSubdivSurfaces;
-
- runTimeCommand -default true
- -annotation ("Hide All Strokes")
- -category ("Display")
- -command ("hideShow -strokes -hide")
- HideStrokes;
-
- runTimeCommand -default true
- -annotation ("Hide All Stroke Path Curves")
- -category ("Display")
- -command ("hideShow -strokeCurves -hide")
- HideStrokePathCurves;
-
- runTimeCommand -default true
- -annotation ("Hide All Stroke Control Curves")
- -category ("Display")
- -command ("hideShow -strokeControlCurves -hide")
- HideStrokeControlCurves;
-
- runTimeCommand -default true
- -annotation ("Hide All Kinematics")
- -category ("Display")
- -command ("hideShow -kinematics -hide")
- HideKinematics;
-
- runTimeCommand -default true
- -annotation ("Hide All Joints")
- -category ("Display")
- -command ("hideShow -joints -hide")
- HideJoints;
-
- runTimeCommand -default true
- -annotation ("Hide All IK Handles")
- -category ("Display")
- -command ("hideShow -ikHandles -hide")
- HideIKHandles;
-
- runTimeCommand -default true
- -annotation ("Hide All Deformers")
- -category ("Display")
- -command ("hideShow -deformers -hide")
- HideDeformers;
-
- runTimeCommand -default true
- -annotation ("Hide All Lattices")
- -category ("Display")
- -command ("hideShow -lattices -hide")
- HideLattices;
-
- runTimeCommand -default true
- -annotation ("Hide All Sculpt Objects")
- -category ("Display")
- -command ("hideShow -sculptObjects -hide")
- HideSculptObjects;
-
- runTimeCommand -default true
- -annotation ("Hide All Clusters")
- -category ("Display")
- -command ("hideShow -clusters -hide")
- HideClusters;
-
- runTimeCommand -default true
- -annotation ("Hide All Wrap Influences")
- -category ("Display")
- -command ("hideShow -wraps -hide")
- HideWrapInfluences;
-
- runTimeCommand -default true
- -annotation ("Hide All Smooth Skin Influences")
- -category ("Display")
- -command ("hideShow -skinClusters -hide")
- HideSmoothSkinInfluences;
-
- runTimeCommand -default true
- -annotation ("Hide All Nonlinears")
- -category ("Display")
- -command ("hideShow -nonlinears -hide")
- HideNonlinears;
-
- if( !`about -mac` ) {
- runTimeCommand -default true
- -annotation ("Hide All Fluids")
- -category ("Display")
- -command ("hideShow -fluids -hide")
- HideFluids;
- }
-
- //
- // Cloth.
- //
- runTimeCommand -default true
- -annotation ("Hide All Cloth")
- -category ("Display")
- -command ("setPatternVisible 0")
- HideCloth;
-
- runTimeCommand -default true
- -annotation ("Hide Cloth Panel Curves")
- -category ("Display")
- -command ("setPanelCurvesVisible 0")
- HideClothPanelCurves;
-
- runTimeCommand -default true
- -annotation ("Hide Cloth Panels")
- -category ("Display")
- -command ("setClothObjectVisible cpPanel 0")
- HideClothPanels;
-
- runTimeCommand -default true
- -annotation ("Hide Cloth Seams")
- -category ("Display")
- -command ("setClothObjectVisible cpSeam 0")
- HideClothSeams;
-
- runTimeCommand -default true
- -annotation ("Hide All Lights")
- -category ("Display")
- -command ("hideShow -lights -hide")
- HideLights;
-
- runTimeCommand -default true
- -annotation ("Hide All Cameras")
- -category ("Display")
- -command ("hideShow -cameras -hide")
- HideCameras;
-
- runTimeCommand -default true
- -annotation ("Hide All Texture Placements")
- -category ("Display")
- -command ("hideShow -place3dTexture -hide")
- HideTexturePlacements;
-
- runTimeCommand -default true
- -annotation ("Hide All Planes")
- -category ("Display")
- -command ("hideShow -planes -hide")
- HidePlanes;
-
- runTimeCommand -default true
- -annotation ("Hide All Markers")
- -category ("Display")
- -command ("hideShow -posMarker -hide")
- HideMarkers;
-
- runTimeCommand -default true
- -annotation ("Hide All Light Manipulators")
- -category ("Display")
- -command ("renderManip -lt false false false; " +
- "renderManip -slt false false false false false false false")
- HideLightManipulators;
-
- runTimeCommand -default true
- -annotation ("Hide All Camera Manipulators")
- -category ("Display")
- -command ("renderManip -camera false false false false false")
- HideCameraManipulators;
-
- // Show.
- //
- runTimeCommand -default true
- -annotation ("Show Selection: Show all selected objects")
- -category ("Display")
- -command ("evalEcho \"showHidden -a\"")
- ShowSelectedObjects;
-
- runTimeCommand -default true
- -annotation ("Show Last Hidden: Show the last hidden item")
- -category ("Display")
- -command ("showLastHidden")
- ShowLastHidden;
-
- runTimeCommand -default true
- -annotation ("Show All Surface CVs: Show all CVs for the surface " +
- "with the selected CV(s)")
- -category ("Display")
- -command ("selectiveCvsDisplay 0")
- ShowSurfaceCVs;
-
- runTimeCommand -default true
- -annotation ("Show All: Show all objects")
- -category ("Display")
- -command ("evalEcho \"showHidden -all\"")
- ShowAll;
-
- runTimeCommand -default true
- -annotation ("Show All Geometry")
- -category ("Display")
- -command ("hideShow -geometry -show")
- ShowGeometry;
-
- runTimeCommand -default true
- -annotation ("Show All NURBS Surfaces")
- -category ("Display")
- -command ("hideShow -nurbsSurfaces -show")
- ShowNURBSSurfaces;
-
- runTimeCommand -default true
- -annotation ("Show All NURBS Curves")
- -category ("Display")
- -command ("hideShow -nurbsCurves -show")
- ShowNURBSCurves;
-
- runTimeCommand -default true
- -annotation ("Show All Polygon Surfaces")
- -category ("Display")
- -command ("hideShow -polySurfaces -show")
- ShowPolygonSurfaces;
-
- runTimeCommand -default true
- -annotation ("Show All Deforming Geometry")
- -category ("Display")
- -command ("hideShowDeformingGeom show")
- ShowDeformingGeometry;
-
- runTimeCommand -default true
- -annotation ("Show All Subdiv Surfaces")
- -category ("Display")
- -command ("hideShow -subdiv -show")
- ShowSubdivSurfaces;
-
- runTimeCommand -default true
- -annotation ("Show All Strokes")
- -category ("Display")
- -command ("hideShow -strokes -show")
- ShowStrokes;
-
- runTimeCommand -default true
- -annotation ("Show All Stroke Path Curves")
- -category ("Display")
- -command ("hideShow -strokeCurves -show")
- ShowStrokePathCurves;
-
- runTimeCommand -default true
- -annotation ("Show All Stroke Control Curves")
- -category ("Display")
- -command ("hideShow -strokeControlCurves -show")
- ShowStrokeControlCurves;
-
- runTimeCommand -default true
- -annotation ("Show All Kinematics")
- -category ("Display")
- -command ("hideShow -kinematics -show")
- ShowKinematics;
-
- runTimeCommand -default true
- -annotation ("Show All Joints")
- -category ("Display")
- -command ("hideShow -joints -show")
- ShowJoints;
-
- runTimeCommand -default true
- -annotation ("Show All IK Handles")
- -category ("Display")
- -command ("hideShow -ikHandles -show")
- ShowIKHandles;
-
- runTimeCommand -default true
- -annotation ("Show All Deformers")
- -category ("Display")
- -command ("hideShow -deformers -show")
- ShowDeformers;
-
- runTimeCommand -default true
- -annotation ("Show All Lattices")
- -category ("Display")
- -command ("hideShow -lattices -show")
- ShowLattices;
-
- runTimeCommand -default true
- -annotation ("Show All Sculpt Objects")
- -category ("Display")
- -command ("hideShow -sculptObjects -show")
- ShowSculptObjects;
-
- runTimeCommand -default true
- -annotation ("Show All Clusters")
- -category ("Display")
- -command ("hideShow -clusters -show")
- ShowClusters;
-
- runTimeCommand -default true
- -annotation ("Show All Wrap Influences")
- -category ("Display")
- -command ("hideShow -wraps -show")
- ShowWrapInfluences;
-
- runTimeCommand -default true
- -annotation ("Show All Smooth Skin Influences")
- -category ("Display")
- -command ("hideShow -skinClusters -show")
- ShowSmoothSkinInfluences;
-
- runTimeCommand -default true
- -annotation ("Show All Nonlinears")
- -category ("Display")
- -command ("hideShow -nonlinears -show")
- ShowNonlinears;
-
- if( !`about -mac` ) {
- runTimeCommand -default true
- -annotation ("Show All Fluids")
- -category ("Display")
- -command ("hideShow -fluids -show")
- ShowFluids;
- }
-
- //
- // Cloth.
- //
- runTimeCommand -default true
- -annotation ("Show All Cloth")
- -category ("Display")
- -command ("setPatternVisible 1")
- ShowCloth;
-
- runTimeCommand -default true
- -annotation ("Show Cloth Panel Curves")
- -category ("Display")
- -command ("setPanelCurvesVisible 1")
- ShowClothPanelCurves;
-
- runTimeCommand -default true
- -annotation ("Show Cloth Panels")
- -category ("Display")
- -command ("setClothObjectVisible cpPanel 1")
- ShowClothPanels;
-
- runTimeCommand -default true
- -annotation ("Show Cloth Seams")
- -category ("Display")
- -command ("setClothObjectVisible cpSeam 1")
- ShowClothSeams;
-
- runTimeCommand -default true
- -annotation ("Show All Lights")
- -category ("Display")
- -command ("showHidden -a `ls -lights`")
- ShowLights;
-
- runTimeCommand -default true
- -annotation ("Show All Cameras")
- -category ("Display")
- -command ("showHidden -a `ls -ap -cameras`")
- ShowCameras;
-
- runTimeCommand -default true
- -annotation ("Show All Texture Placements")
- -category ("Display")
- -command ("showHidden -a `ls -type place3dTexture`")
- ShowTexturePlacements;
-
- runTimeCommand -default true
- -annotation ("Show All Planes")
- -category ("Display")
- -command ("showHidden -a `ls -planes`")
- ShowPlanes;
-
- runTimeCommand -default true
- -annotation ("Show All Markers")
- -category ("Display")
- -command ("hideShow -posMarker -show")
- ShowMarkers;
-
- runTimeCommand -default true
- -annotation ("Show All Light Manipulators")
- -category ("Display")
- -command ("renderManip -lt true true true; renderManip -slt true true true true true true true")
- ShowLightManipulators;
-
- runTimeCommand -default true
- -annotation ("Show All Camera Manipulators")
- -category ("Display")
- -command ("renderManip -cam true true true true true")
- ShowCameraManipulators;
-
- // Object Display.
- //
- runTimeCommand -default true
- -annotation ("Template: Make objects templated")
- -category ("Display")
- -command ("toggle -state on -template")
- TemplateObject;
-
- runTimeCommand -default true
- -annotation ("Untemplate: Make objects untemplated")
- -category ("Display")
- -command ("toggle -state off -template")
- UntemplateObject;
-
- runTimeCommand -default true
- -annotation ("Ghost: Display ghosts for objects")
- -category ("Display")
- -command ("doGhost 1 {\"1\"}")
- GhostObject;
-
- runTimeCommand -default true
- -annotation ("No Ghost: Do not display ghosts for objects")
- -category ("Display")
- -command ("doGhost 1 {\"0\"}")
- UnghostObject;
-
- runTimeCommand -default true
- -annotation ("Bounding Box: Display objects as a box")
- -category ("Display")
- -command ("boundingBoxDisplayCtrl 1 \"\"")
- ShowBoundingBox;
-
- runTimeCommand -default true
- -annotation ("No Bounding Box: Full display of objects")
- -category ("Display")
- -command ("boundingBoxDisplayCtrl 0 \"\"")
- HideBoundingBox;
-
- runTimeCommand -default true
- -annotation ("Geometry: Display object geometry")
- -category ("Display")
- -command ("toggle -state on -geometry")
- ShowObjectGeometry;
-
- runTimeCommand -default true
- -annotation ("No Geometry: Do not display object geometry")
- -category ("Display")
- -command ("toggle -state off -geometry")
- HideObjectGeometry;
-
- // Component Display.
- //
- runTimeCommand -default true
- -annotation ("Backfaces: Toggle geometry backface visibility")
- -category ("Display")
- -command ("toggleSurfaceBackfaceCulling()")
- ToggleBackfaceGeometry;
-
- runTimeCommand -default true
- -annotation ("Lattice Points: Toggle lattice point visibility")
- -category ("Display")
- -command ("toggle -latticePoint")
- ToggleLatticePoints;
-
- runTimeCommand -default true
- -annotation ("Lattice Shape: Toggle lattice shape visibility")
- -category ("Display")
- -command ("toggle -latticeShape")
- ToggleLatticeShape;
-
- runTimeCommand -default true
- -annotation ("Local Rotation Axes: Toggle local rotation axis visibility")
- -category ("Display")
- -command ("toggle -localAxis")
- ToggleLocalRotationAxes;
-
- runTimeCommand -default true
- -annotation ("Rotate Pivots: Toggle rotation pivot visibility")
- -category ("Display")
- -command ("toggle -rotatePivot")
- ToggleRotationPivots;
-
- runTimeCommand -default true
- -annotation ("Scale Pivots: Toggle scale pivot visibility")
- -category ("Display")
- -command ("toggle -scalePivot")
- ToggleScalePivots;
-
- runTimeCommand -default true
- -annotation ("Selection Handles: Toggle selection handle visibility")
- -category ("Display")
- -command ("toggle -selectHandle")
- ToggleSelectionHandles;
-
- // NURBS Components.
- //
- runTimeCommand -default true
- -annotation ("CVs: Toggle CV visibility")
- -category ("Display")
- -command ("toggle -controlVertex")
- ToggleCVs;
-
- runTimeCommand -default true
- -annotation ("Edit Points: Toggle edit point visibility")
- -category ("Display")
- -command ("toggle -editPoint")
- ToggleEditPoints;
-
- runTimeCommand -default true
- -annotation ("Hulls: Toggle hull visibility")
- -category ("Display")
- -command ("toggle -hull")
- ToggleHulls;
-
- runTimeCommand -default true
- -annotation ("Normals: Toggle visible normals in shaded mode")
- -category ("Display")
- -command ("toggle -normal")
- ToggleNormals;
-
- runTimeCommand -default true
- -annotation ("Patch Centers: Toggle face center visibility")
- -category ("Display")
- -command ("toggle -surfaceFace")
- ToggleSurfaceFaceCenters;
-
- runTimeCommand -default true
- -annotation ("Surface Origins: Toggle origin visibility")
- -category ("Display")
- -command ("toggle -origin")
- ToggleSurfaceOrigin;
-
- runTimeCommand -default true
- -annotation ("Custom: Set the visibility options of " +
- "NURBS components for selected object(s)")
- -category ("Display")
- -command ("performDisplayControl 0")
- ToggleCustomNURBSComponents;
-
- runTimeCommand -default true
- -annotation ("Custom NURBS Components Options")
- -category ("Display")
- -command ("performDisplayControl 1")
- CustomNURBSComponentsOptions;
-
- // NURBS Smoothness.
- //
- runTimeCommand -default true
- -annotation ("Display Hull: Set the display smoothness to hull")
- -category ("Display")
- -command ("performDisplaySmoothnessHull 0")
- NURBSSmoothnessHull;
-
- runTimeCommand -default true
- -annotation ("Display Hull Options")
- -category ("Display")
- -command ("performDisplaySmoothnessHull 1")
- NURBSSmoothnessHullOptions;
-
- runTimeCommand -default true
- -annotation ("Display Rough: Set the display smoothness to rough")
- -category ("Display")
- -command ("performDisplaySmoothnessRough 0")
- NURBSSmoothnessRough;
-
- runTimeCommand -default true
- -annotation ("Display Rough Options")
- -category ("Display")
- -command ("performDisplaySmoothnessRough 1")
- NURBSSmoothnessRoughOptions;
-
- runTimeCommand -default true
- -annotation ("Display Medium: Set the display smoothness to medium")
- -category ("Display")
- -command ("performDisplaySmoothnessMedium 0")
- NURBSSmoothnessMedium;
-
- runTimeCommand -default true
- -annotation ("Display Medium Options")
- -category ("Display")
- -command ("performDisplaySmoothnessMedium 1")
- NURBSSmoothnessMediumOptions;
-
- runTimeCommand -default true
- -annotation ("Display Fine: Set the display smoothness to fine")
- -category ("Display")
- -command ("performDisplaySmoothnessFine 0")
- NURBSSmoothnessFine;
-
- runTimeCommand -default true
- -annotation ("Display Fine Options")
- -category ("Display")
- -command ("performDisplaySmoothnessFine 1")
- NURBSSmoothnessFineOptions;
-
- runTimeCommand -default true
- -annotation ("Display Custom: Define and set a customized " +
- "display smoothness")
- -category ("Display")
- -command ("performDisplaySmoothnessCustom 0")
- CustomNURBSSmoothness;
-
- runTimeCommand -default true
- -annotation ("Display Custom NURBS Smoothness Options")
- -category ("Display")
- -command ("performDisplaySmoothnessCustom 1")
- CustomNURBSSmoothnessOptions;
-
- // Polygon Components.
- //
- runTimeCommand -default true
- -annotation ("Vertices: Toggle the poly vertex visibility")
- -category ("Display")
- -command ("polyOptions -r -dv true")
- ToggleVertices;
-
- runTimeCommand -default true
- -annotation ("Border Edges: Toggle the poly border visibility")
- -category ("Display")
- -command ("polyOptions -r -db true")
- ToggleBorderEdges;
-
- runTimeCommand -default true
- -annotation ("Soft Edges: Toggle the soft edge visibility")
- -category ("Display")
- -command ("int $cond[1]=`polyOptions -q -ae`; " +
- "if ($cond[0]) polyOptions -se; else polyOptions -ae;")
- ToggleSoftEdges;
-
- runTimeCommand -default true
- -annotation ("Face Centers: Toggle the face center visibility")
- -category ("Display")
- -command ("polyOptions -r -dc true")
- TogglePolygonFaceCenters;
-
- runTimeCommand -default true
- -annotation ("UVs: Toggle the UV visibility")
- -category ("Display")
- -command ("polyOptions -r -duv true")
- ToggleUVs;
-
- runTimeCommand -default true
- -annotation ("Normals: Toggle the face normal visibility")
- -category ("Display")
- -command ("polyOptions -r -dn true -facet")
- ToggleFaceNormals;
-
- runTimeCommand -default true
- -annotation ("Long Normals: Set the poly normal size to Long")
- -category ("Display")
- -command ("setNormalsSize 1.0")
- LongPolygonNormals;
-
- runTimeCommand -default true
- -annotation ("Medium Normals: Set the poly normal size to Medium")
- -category ("Display")
- -command ("setNormalsSize .4")
- MediumPolygonNormals;
-
- runTimeCommand -default true
- -annotation ("Short Normals: Set the poly normal size to Short")
- -category ("Display")
- -command ("setNormalsSize .16")
- ShortPolygonNormals;
-
- // Custom Polygon Display.
- //
- runTimeCommand -default true
- -annotation ("Custom Polygon Display: Customize the Polygon " +
- "Display Options")
- -category ("Display")
- -command ("polysDisplaySetup 0")
- CustomPolygonDisplay;
-
- runTimeCommand -default true
- -annotation ("Custom Polygon Display Options")
- -category ("Display")
- -command ("polysDisplaySetup 1")
- CustomPolygonDisplayOptions;
-
- // Subdiv Surface Components.
- //
- runTimeCommand -default true
- -annotation ("Vertices: Toggle visibility of vertices")
- -category ("Display")
- -command ("subdivToggle 1")
- ToggleMeshPoints;
-
- runTimeCommand -default true
- -annotation ("Edges: Toggle visibility of edges")
- -category ("Display")
- -command ("subdivToggle 2")
- ToggleMeshEdges;
-
- runTimeCommand -default true
- -annotation ("Faces: Toggle visibility of faces")
- -category ("Display")
- -command ("subdivToggle 3")
- ToggleMeshFaces;
-
- runTimeCommand -default true
- -annotation ("Maps: Toggle visibility of UV map components")
- -category ("Display")
- -command ("subdivToggle 4")
- ToggleMeshMaps;
-
- runTimeCommand -default true
- -annotation ("UV Borders: Toggle visibility of UV texture borders")
- -category ("Display")
- -command ("subdivToggle 5")
- ToggleMeshUVBorders;
-
- // Subdiv Surface Smoothness.
- //
- runTimeCommand -default true
- -annotation ("Display Hull: Set the display smoothness to hull")
- -category ("Display")
- -command ("performSubdivDisplaySmoothnessHull 0")
- SubdivSmoothnessHull;
-
- runTimeCommand -default true
- -annotation ("Display Hull Options")
- -category ("Display")
- -command ("performSubdivDisplaySmoothnessHull 1")
- SubdivSmoothnessHullOptions;
-
- runTimeCommand -default true
- -annotation ("Rough: Set the display smoothness to rough")
- -category ("Display")
- -command ("performSubdivDisplaySmoothnessRough 0")
- SubdivSmoothnessRough;
-
- runTimeCommand -default true
- -annotation ("Rough Options")
- -category ("Display")
- -command ("performSubdivDisplaySmoothnessRough 1")
- SubdivSmoothnessRoughOptions;
-
- runTimeCommand -default true
- -annotation ("Medium: Set the display smoothness to medium")
- -category ("Display")
- -command ("performSubdivDisplaySmoothnessMedium 0")
- SubdivSmoothnessMedium;
-
- runTimeCommand -default true
- -annotation ("Medium Options")
- -category ("Display")
- -command ("performSubdivDisplaySmoothnessMedium 1")
- SubdivSmoothnessMediumOptions;
-
- runTimeCommand -default true
- -annotation ("Fine: Set the display smoothness to fine")
- -category ("Display")
- -command ("performSubdivDisplaySmoothnessFine 0")
- SubdivSmoothnessFine;
-
- runTimeCommand -default true
- -annotation ("Fine Options")
- -category ("Display")
- -command ("performSubdivDisplaySmoothnessFine 1")
- SubdivSmoothnessFineOptions;
-
- // Fast Interaction.
- //
- runTimeCommand -default true
- -annotation ("Fast Interaction: Toggle fast interaction mode")
- -category ("Display")
- -command ("doFastInteractionItem (!`displayLevelOfDetail -q -lod`)")
- ToggleFastInteraction;
-
- //
- // Window menu.
- //
- // ----------------------------------------------------------------------
-
- // General Editors.
- //
- runTimeCommand -default true
- -annotation ("Component Editor: Edit various component values " +
- "for the selected object(s)")
- -category ("Window")
- -command ("tearOffPanel \"Component Editor\" " +
- "\"componentEditorPanel\" true;")
- ComponentEditor;
-
- runTimeCommand -default true
- -annotation ("Attribute Spread Sheet: Edit the attributes of the " +
- "selected object(s)")
- -category ("Window")
- -command ("SpreadSheetWindow")
- SpreadSheetEditor;
-
- runTimeCommand -default true
- -annotation ("Connection Editor: Make connections between " +
- "object attributes")
- -category ("Window")
- -command ("optionVar -iv \"connectWindowActive\" 1; connectWindow")
- ConnectionEditor;
-
- runTimeCommand -default true
- -annotation ("Display Layer Editor: Edit layer information")
- -category ("Window")
- -command ("showChannelsLayers(\"Layers\")")
- LayerEditor;
-
- runTimeCommand -default true
- -annotation ("Blind Data Editor: Create blind data types and " +
- "apply, query, or false color blind data")
- -category ("Window")
- -command ("blindDataEditor")
- BlindDataEditor;
-
- runTimeCommand -default true
- -annotation ("Tool Settings: Edit settings for current tool")
- -category ("Window")
- -command ("toolPropertyWindow -inMainWindow false")
- ToolSettingsWindow;
-
- runTimeCommand -default true
- -annotation ("Channel Control: Set the keyable state of attributes " +
- "of the selected object(s)")
- -category ("Window")
- -command ("lockingKeyableWnd")
- ChannelControlEditor;
-
- runTimeCommand -default true
- -annotation ("Performance Settings: Edit settings affecting scene " +
- "evaluation")
- -category ("Window")
- -command ("performanceSettingsWin")
- PerformanceSettingsWindow;
-
- runTimeCommand -default true
- -annotation ("Script Editor: Enter Maya Embedded Language (MEL) commands")
- -category ("Window")
- -command ("showWindow $gCommandWindow")
- ScriptEditor;
-
- if (!`about -mac`) {
- runTimeCommand -default true
- -annotation ("Command Shell: Open a Command Shell window to " +
- "enter MEL commands one line at a time")
- -category ("Window")
- -command ("shellWnd")
- CommandShell;
- }
-
- runTimeCommand -default true
- -annotation ("Plug-in Manager: Load or automatically load plug-ins")
- -category ("Window")
- -command ("pluginWin")
- PluginManager;
-
- // Rendering Editors.
- //
- runTimeCommand -default true
- -annotation ("Render View: Display rendering image")
- -category ("Window")
- -command ("tearOffPanel \"Render View\" " +
- "\"renderWindowPanel\" true;")
- RenderViewWindow;
-
- runTimeCommand -default true
- -annotation ("Hardware Render Buffer: Display the scene " +
- "through the camera selected for hardware rendering")
- -category ("Window")
- -command ("glRenderWin")
- HardwareRenderBuffer;
-
- runTimeCommand -default true
- -annotation ("Rendering Flags: Change the rendering preferences")
- -category ("Window")
- -command ("renderFlagsWindow")
- RenderFlagsWindow;
-
- runTimeCommand -default true
- -annotation ("Multilister: Create and edit shading nodes, and assign them to objects in your scene")
- -category ("Window")
- -command ("tearOffPanel \"Multilister\" \"multiListerPanel\" true;")
- Multilister;
-
- runTimeCommand -default true
- -annotation ("Shading Group Attributes: Object by object shader properties")
- -category ("Window")
- -command ("showShadingGroupAttrEditor")
- ShadingGroupAttributeEditor;
-
- // Animation Editors.
- //
- runTimeCommand -default true
- -annotation ("Graph Editor: Edit animation curves")
- -category ("Window")
- -command ("tearOffPanel \"Graph Editor\" \"graphEditor\" true;")
- GraphEditor;
-
- runTimeCommand -default true
- -annotation ("Dope Sheet: Perform high-level timing and animation event and sound synchronization editing")
- -category ("Window")
- -command ("tearOffPanel \"Dope Sheet\" \"dopeSheetPanel\" true;")
- DopeSheetEditor;
-
- runTimeCommand -default true
- -annotation ("Blend Shape: Adjust Blend Shape weights")
- -category ("Window")
- -command ("tearOffPanel \"Blend Shape\" \"blendShapePanel\" false;")
- BlendShapeEditor;
-
- runTimeCommand -default true
- -annotation ("Expression Editor: Edit expressions between attributes")
- -category ("Window")
- -command ("expressionEditor EE \"\" \"\"")
- ExpressionEditor;
-
- runTimeCommand -default true
- -annotation ("Device Editor: Attach input devices to commands or objects")
- -category ("Window")
- -command ("tearOffPanel \"Devices\" \"devicePanel\" false;")
- DeviceEditor;
-
- // Relationship Editors.
- //
- runTimeCommand -default true
- -annotation ("Set Editor: Edit set membership")
- -category ("Window")
- -command ("setMembershipEditor")
- SetEditor;
-
- runTimeCommand -default true
- -annotation ("Deformer Set Editor: Edit deformer set membership")
- -category ("Window")
- -command ("deformerSetEditor")
- DeformerSetEditor;
-
- runTimeCommand -default true
- -annotation ("Character Set Editor: Edit character set membership")
- -category ("Window")
- -command ("characterEditor 0")
- CharacterSetEditor;
-
- runTimeCommand -default true
- -annotation ("Partition Editor: Edit partition membership")
- -category ("Window")
- -command ("partitionEditor")
- PartitionEditor;
-
- runTimeCommand -default true
- -annotation ("Layer Editor: Edit display layer membership")
- -category ("Window")
- -command ("displayLayerEditor")
- LayerRelationshipEditor;
-
- runTimeCommand -default true
- -annotation ("Render Layer Editor: Edit render layer membership")
- -category ("Window")
- -command ("renderLayerEditor")
- RenderLayerRelationshipEditor;
-
- runTimeCommand -default true
- -annotation ("Dynamic Relationships: Edit dynamic " +
- "connections to the objects")
- -category ("Window")
- -command ("tearOffPanel \"Dynamic Relationships\" " +
- "\"dynRelEdPanel\" true;")
- DynamicRelationshipEditor;
-
- runTimeCommand -default true
- -annotation ("Light-Centric Light Linking: Specify the " +
- "object(s) illuminated by particular lights")
- -category ("Window")
- -command ("lightLinkingEditor")
- LightCentricLightLinkingEditor;
-
- runTimeCommand -default true
- -annotation ("Object-Centric Light Linking: Specify which" +
- "light(s) illuminate particular geometry")
- -category ("Window")
- -command ("objectLightLinkingEditor")
- ObjectCentricLightLinkingEditor;
-
- runTimeCommand -default true
- -annotation ("Texture-Centric UV Linking: Specify which UV" +
- "set is used by a particular texture")
- -category ("Window")
- -command ("textureCentricUvLinkingEditor")
- TextureCentricUVLinkingEditor;
-
- runTimeCommand -default true
- -annotation ("UV-Centric UV Linking: Specify which textures " +
- "use a particular UV set")
- -category ("Window")
- -command ("uvCentricUvLinkingEditor")
- UVCentricUVLinkingEditor;
-
- // Miscellaneous editors and windows.
- //
- runTimeCommand -default true
- -annotation ("Attribute Editor: Edit the attributes of the " +
- "selected object")
- -category ("Window")
- -command ("openAEWindow")
- AttributeEditor;
-
- runTimeCommand -default true
- -annotation ("Outliner: List the objects in the scene")
- -category ("Window")
- -command ("tearOffPanel \"Outliner\" \"outlinerPanel\" false;")
- OutlinerWindow;
-
- runTimeCommand -default true
- -annotation ("Hypergraph: Display and edit relationships " +
- "among nodes in your scene graphically")
- -category ("Window")
- -command ("tearOffPanel \"Hypergraph\" \"hyperGraphPanel\" true;")
- HypergraphWindow;
-
- runTimeCommand -default true
- -annotation ("Render Globals: Change global rendering attributes")
- -category ("Window")
- -command ("displayRenderGlobalsWindow")
- RenderGlobalsWindow;
-
- runTimeCommand -default true
- -annotation ("Hypershade: Display and edit connections in " +
- "shading networks")
- -category ("Window")
- -command ("tearOffPanel \"Hypershade\" \"hyperShadePanel\" true;")
- HypershadeWindow;
-
- runTimeCommand -default true
- -annotation ("Visor: Visual organizer that displays images of " +
- "shading nodes")
- -category ("Window")
- -command ("tearOffPanel \"Visor\" \"VisorPanel\" true;")
- VisorWindow;
-
- runTimeCommand -default true
- -annotation ("Paint Effects: A 2D/3D paint system using " +
- "connected particles to produce effects")
- -category ("Window")
- -command ("scriptedPanel -e -to dynPaintScriptedPanel")
- PaintEffectsWindow;
-
- runTimeCommand -default true
- -annotation ("UV Texture Editor: Texture coordinate mapping view")
- -category ("Window")
- -command ("tearOffPanel \"UV Texture Editor\" " +
- "\"polyTexturePlacementPanel\" true;")
- TextureViewWindow;
-
- runTimeCommand -default true
- -annotation ("Trax Editor: Non-Linear Character Animation Editor")
- -category ("Window")
- -command ("tearOffPanel \"Trax Editor\" \"clipEditorPanel\" true;")
- CharacterAnimationEditor;
-
- runTimeCommand -default true
- -annotation ("Playblast: Preview animation by screen-capturing frames")
- -category ("Window")
- -command ("performPlayblast false")
- PlayblastWindow;
-
- runTimeCommand -default true
- -annotation ("Playblast Options")
- -category ("Window")
- -command ("performPlayblast true")
- PlayblastOptions;
-
- // View Arrangements.
- //
- runTimeCommand -default true
- -annotation ("Four Panes: Change layout to 4 panels")
- -category ("Window")
- -command ("switchPanes quad 0; updateToolbox();")
- FourViewArrangement;
-
- runTimeCommand -default true
- -annotation ("Three Panes Split Top: Change layout to 2 panels on top and 1 below")
- -category ("Window")
- -command ("switchPanes top3 0; updateToolbox();")
- ThreeTopSplitViewArrangement;
-
- runTimeCommand -default true
- -annotation ("Three Panes Split Left: Change layout to 2 panels on left and 1 on right")
- -category ("Window")
- -command ("switchPanes left3 0; updateToolbox();")
- ThreeLeftSplitViewArrangement;
-
- runTimeCommand -default true
- -annotation ("Three Panes Split Right: Change layout to 2 panels on right and 1 on left")
- -category ("Window")
- -command ("switchPanes right3 0; updateToolbox();")
- ThreeRightSplitViewArrangement;
-
- runTimeCommand -default true
- -annotation ("Three Panes Split Bottom: Change layout to 1 panel on top and 2 below")
- -category ("Window")
- -command ("switchPanes bottom3 0; updateToolbox();")
- ThreeBottomSplitViewArrangement;
-
- runTimeCommand -default true
- -annotation ("Two Panes Stacked: Change layout to 1 panel on top of another")
- -category ("Window")
- -command ("switchPanes horizontal2 0; updateToolbox();")
- TwoStackedViewArrangement;
-
- runTimeCommand -default true
- -annotation ("Two Panes Side by Side: Change layout to 1 panel beside another")
- -category ("Window")
- -command ("switchPanes vertical2 0; updateToolbox();")
- TwoSideBySideViewArrangement;
-
- runTimeCommand -default true
- -annotation ("Single Pane: Change layout to 1 panel")
- -category ("Window")
- -command ("switchPanes single 0; updateToolbox();")
- SingleViewArrangement;
-
- runTimeCommand -default true
- -annotation ("Previous View Arrangement: Display previous view " +
- "arrangement in view history")
- -category ("Window")
- -command ("switchPanes goBack 0; updateToolbox();")
- PreviousViewArrangement;
-
- runTimeCommand -default true
- -annotation ("Next View Arrangement: Display next view arrangement " +
- "in view history")
- -category ("Window")
- -command ("panelHistory -e -f mainPanelHistory; updateToolbox();")
- NextViewArrangement;
-
- // Panel layouts.
- //
- runTimeCommand -default true
- -annotation ("Single Perspective View")
- -category ("Window")
- -command ("setNamedPanelLayout \"Single Perspective View\"")
- SinglePerspectiveViewLayout;
-
- runTimeCommand -default true
- -annotation ("Four View")
- -category ("Window")
- -command ("setNamedPanelLayout \"Four View\"")
- FourViewLayout;
-
- runTimeCommand -default true
- -annotation ("Persp/Graph/Hypergraph")
- -category ("Window")
- -command ("setNamedPanelLayout \"Persp/Graph/Hypergraph\"")
- PerspGraphHypergraphLayout;
-
- runTimeCommand -default true
- -annotation ("Hypershade/Render/Persp")
- -category ("Window")
- -command ("setNamedPanelLayout \"Hypershade/Render/Persp\"")
- HypershadeRenderPerspLayout;
-
- runTimeCommand -default true
- -annotation ("Hypershade/Outliner/Persp")
- -category ("Window")
- -command ("setNamedPanelLayout \"Hypershade/Outliner/Persp\"")
- HypershadeOutlinerPerspLayout;
-
- runTimeCommand -default true
- -annotation ("Hypershade/Persp")
- -category ("Window")
- -command ("setNamedPanelLayout \"Hypershade/Persp\"")
- HypershadePerspLayout;
-
- runTimeCommand -default true
- -annotation ("Persp/Outliner")
- -category ("Window")
- -command ("setNamedPanelLayout \"Persp/Outliner\"")
- PerspOutlinerLayout;
-
- runTimeCommand -default true
- -annotation ("Persp/Graph/Outliner")
- -category ("Window")
- -command ("setNamedPanelLayout \"Persp/Graph/Outliner\"")
- PerspGraphOutlinerLayout;
-
- runTimeCommand -default true
- -annotation ("Persp/Graph")
- -category ("Window")
- -command ("setNamedPanelLayout \"Persp/Graph\"")
- PerspGraphLayout;
-
- runTimeCommand -default true
- -annotation ("Persp/Relationship Editor")
- -category ("Window")
- -command ("setNamedPanelLayout \"Persp/Relationship Editor\"")
- PerspRelationshipEditorLayout;
-
- runTimeCommand -default true
- -annotation ("Persp/UV Texture Editor")
- -category ("Window")
- -command ("setNamedPanelLayout \"Persp/UV Texture Editor\"")
- PerspTextureLayout;
-
- // Save current layout.
- //
- runTimeCommand -default true
- -annotation ("Save Current Layout")
- -category ("Window")
- -command ("saveCurrentPanelLayout")
- SaveCurrentLayout;
-
- // Frame in view.
- //
- runTimeCommand -default true
- -annotation ("Frame All in All Views: Change the cameras " +
- "to frame all objects in the view")
- -category ("Window")
- -command ("fitAllPanels -all")
- FrameAllInAllViews;
-
- runTimeCommand -default true
- -annotation ("Frame Selection in All Views: Change the " +
- "cameras to frame the selected object(s) in the view")
- -category ("Window")
- -command ("fitAllPanels -selected")
- FrameSelectedInAllViews;
-
- // Preferences and customization windows.
- //
- runTimeCommand -default true
- -annotation ("Preferences: Set and save Maya preferences")
- -category ("Window")
- -command ("preferencesWnd \"general\";")
- PreferencesWindow;
-
- runTimeCommand -default true
- -annotation ("Hotkey Preferences: Create, edit and save hotkeys")
- -category ("Window")
- -command ("hotkeyEditor")
- HotkeyPreferencesWindow;
-
- runTimeCommand -default true
- -annotation ("Color Preferences: Set colors for the Maya UI")
- -category ("Window")
- -command ("colorPrefWnd")
- ColorPreferencesWindow;
-
- runTimeCommand -default true
- -annotation ("Marking Menu Editor: Customize the layout of " +
- "the Marking Menus")
- -category ("Window")
- -command ("menuEditorWnd")
- MarkingMenuPreferencesWindow;
-
- runTimeCommand -default true
- -annotation ("Shelf Editor: Edit the contents of the Shelf")
- -category ("Window")
- -command ("shelfEditorDialog")
- ShelfPreferencesWindow;
-
- runTimeCommand -default true
- -annotation ("Panel Editor: Edit the Panel Layout")
- -category ("Window")
- -command ("panelEditor \"Panels\"")
- PanelPreferencesWindow;
-
- // Application window functions.
- //
- if (!`about -mac`) {
- runTimeCommand -default true
- -annotation ("Minimize Application: Minimize Maya into one icon")
- -category ("Window")
- -command ("minimizeApp")
- MinimizeApplication;
- }
-
- runTimeCommand -default true
- -annotation ("Raise Application Windows: Raises Maya windows " +
- "in no particular order")
- -category ("Window")
- -command ("raiseAllWindows")
- RaiseApplicationWindows;
-
- runTimeCommand -default true
- -annotation ("Raise Main Window: Brings main Maya window to " +
- "the front of the stack")
- -category ("Window")
- -command ("showWindow MayaWindow")
- RaiseMainWindow;
-
- //
- // Help menu.
- //
- // ----------------------------------------------------------------------
-
- // Product information.
- //
- runTimeCommand -default true
- -annotation ("Product Information: Displays version number " +
- "and other product information for Maya")
- -category ("Help")
- -command ("about")
- ProductInformation;
-
- // Open a Help window.
- //
- if (`about -mac`) {
- runTimeCommand -default true
- -annotation ("Library: Opens an online table of contents in an HTML browser")
- -category ("Help")
- -command ("showHelp -docs index.html")
- Help;
- }
- else {
- runTimeCommand -default true
- -annotation ("Library: Opens an online table of contents in an HTML browser")
- -category ("Help")
- -command ("showHelp -docs index.html")
- Help;
- }
- }
- commonMenus();
-
- // ======================================================================
- // ======================================================================
- //
- // Modeling menu set, ie. Edit Curves, NURBS, Edit NURBS,
- // Polygons, Edit Polygons, and Subdiv Surfaces.
- //
- // ======================================================================
- // ======================================================================
- proc modelingMenus() {
- //
- // Edit Curves menu.
- //
- // ----------------------------------------------------------------------
-
- runTimeCommand -default true
- -annotation ("Duplicate Surface Curves: Select surface curve(s)")
- -category ("Edit Curves")
- -command ("duplicateCurveToolScript 4")
- DuplicateCurve;
-
- runTimeCommand -default true
- -annotation ("Duplicate Surface Curves Options")
- -category ("Edit Curves")
- -command ("duplicateCurveToolScript 3")
- DuplicateCurveOptions;
-
- runTimeCommand -default true
- -annotation ("Attach Curves: Select two curves")
- -category ("Edit Curves")
- -command ("attachCrvToolScript 4")
- AttachCurve;
-
- runTimeCommand -default true
- -annotation ("Attach Curves Options")
- -category ("Edit Curves")
- -command ("attachCrvToolScript 3")
- AttachCurveOptions;
-
- runTimeCommand -default true
- -annotation ("Detach Curves: Select curve parameter point(s)")
- -category ("Edit Curves")
- -command ("detachCurveToolScript 4")
- DetachCurve;
-
- runTimeCommand -default true
- -annotation ("Detach Curves Options")
- -category ("Edit Curves")
- -command ("detachCurveToolScript 3")
- DetachCurveOptions;
-
- runTimeCommand -default true
- -annotation ("Align Curves: Select two curves")
- -category ("Edit Curves")
- -command ("alignCurveToolScript 4")
- AlignCurve;
-
- runTimeCommand -default true
- -annotation ("Align Curves Options")
- -category ("Edit Curves")
- -command ("alignCurveToolScript 3")
- AlignCurveOptions;
-
- runTimeCommand -default true
- -annotation ("Open/Close Curves: Select curve(s)")
- -category ("Edit Curves")
- -command ("closeCurveToolScript 4")
- OpenCloseCurve;
-
- runTimeCommand -default true
- -annotation ("Open/Close Curves Options")
- -category ("Edit Curves")
- -command ("closeCurveToolScript 3")
- OpenCloseCurveOptions;
-
- runTimeCommand -default true
- -annotation ("Cut Curve: Cuts two curves where they intersect")
- -category ("Edit Curves")
- -command ("cutCurveToolScript 4")
- CutCurve;
-
- runTimeCommand -default true
- -annotation ("Cut Curve Options")
- -category ("Edit Curves")
- -command ("cutCurveToolScript 3")
- CutCurveOptions;
-
- runTimeCommand -default true
- -annotation ("Intersect Curves: Select two or more curves - the " +
- "last curve intersects all the other ones")
- -category ("Edit Curves")
- -command ("intersectCurveToolScript 4")
- IntersectCurve;
-
- runTimeCommand -default true
- -annotation ("Intersect Curves Options")
- -category ("Edit Curves")
- -command ("intersectCurveToolScript 3")
- IntersectCurveOptions;
-
- runTimeCommand -default true
- -annotation ("Curve Fillet: Select curve parameter points")
- -category ("Edit Curves")
- -command ("filletCurveToolScript 4")
- CurveFillet;
-
- runTimeCommand -default true
- -annotation ("Curve Fillet Options")
- -category ("Edit Curves")
- -command ("filletCurveToolScript 3")
- CurveFilletOptions;
-
- runTimeCommand -default true
- -annotation ("Insert Knot: Select curve parameter point(s)")
- -category ("Edit Curves")
- -command ("insertCurveToolScript 4")
- InsertKnot;
-
- runTimeCommand -default true
- -annotation ("Insert Knot Options")
- -category ("Edit Curves")
- -command ("insertCurveToolScript 3")
- InsertKnotOptions;
-
- runTimeCommand -default true
- -annotation ("Extend Curve: Select curve(s) or curve on surface(s)")
- -category ("Edit Curves")
- -command ("extendCurveToolScript 4")
- ExtendCurve;
-
- runTimeCommand -default true
- -annotation ("Extend Curve Options")
- -category ("Edit Curves")
- -command ("extendCurveToolScript 3")
- ExtendCurveOptions;
-
- runTimeCommand -default true
- -annotation ("Extend Curve On Surface: Select curve(s) on surface")
- -category ("Edit Curves")
- -command ("extendCosCurveToolScript 4")
- ExtendCurveOnSurface;
-
- runTimeCommand -default true
- -annotation ("Extend Curve On Surface Options")
- -category ("Edit Curves")
- -command ("extendCosCurveToolScript 3")
- ExtendCurveOnSurfaceOptions;
-
- runTimeCommand -default true
- -annotation ("Offset Curve: Select a curve, curve on surface, " +
- "isoparm or trim edge")
- -category ("Edit Curves")
- -command ("offsetCurveToolScript 4")
- OffsetCurve;
-
- runTimeCommand -default true
- -annotation ("Offset Curve Options")
- -category ("Edit Curves")
- -command ("offsetCurveToolScript 3")
- OffsetCurveOptions;
-
- runTimeCommand -default true
- -annotation ("Offset Curve On Surface: Select a curve on " +
- "surface, isoparm or trim edge")
- -category ("Edit Curves")
- -command ("offsetCosToolScript 4")
- OffsetCurveOnSurface;
-
- runTimeCommand -default true
- -annotation ("Offset Curve On Surface Options")
- -category ("Edit Curves")
- -command ("offsetCosToolScript 3")
- OffsetCurveOnSurfaceOptions;
-
- runTimeCommand -default true
- -annotation ("Reverse Curves: Select curve(s)")
- -category ("Edit Curves")
- -command ("reverseCurveToolScript 4")
- ReverseCurve;
-
- runTimeCommand -default true
- -annotation ("Reverse Curves Options")
- -category ("Edit Curves")
- -command ("reverseCurveToolScript 3")
- ReverseCurveOptions;
-
- runTimeCommand -default true
- -annotation ("Rebuild Curve: Select curve(s) or curve on surface(s)")
- -category ("Edit Curves")
- -command ("rebuildCurveToolScript 4")
- RebuildCurve;
-
- runTimeCommand -default true
- -annotation ("Rebuild Curve Options")
- -category ("Edit Curves")
- -command ("rebuildCurveToolScript 3")
- RebuildCurveOptions;
-
- runTimeCommand -default true
- -annotation ("Fit B-spline: Select curve(s), isoparm(s) or trim edge(s)")
- -category ("Edit Curves")
- -command ("fitBsplineToolScript 4")
- FitBSpline;
-
- runTimeCommand -default true
- -annotation ("Fit B-spline Options")
- -category ("Edit Curves")
- -command ("fitBsplineToolScript 3")
- FitBSplineOptions;
-
- runTimeCommand -default true
- -annotation ("Smooth Curve: Select control vertices on curve")
- -category ("Edit Curves")
- -command ("smoothCurveToolScript 4")
- SmoothCurve;
-
- runTimeCommand -default true
- -annotation ("Smooth Curve Options")
- -category ("Edit Curves")
- -command ("smoothCurveToolScript 3")
- SmoothCurveOptions;
-
- runTimeCommand -default true
- -annotation ("CV Hardness: Select control vertices on curve")
- -category ("Edit Curves")
- -command ("cvHardnessToolScript 4")
- CVHardness;
-
- runTimeCommand -default true
- -annotation ("CV Hardness Options")
- -category ("Edit Curves")
- -command ("cvHardnessToolScript 3")
- CVHardnessOptions;
-
- runTimeCommand -default true
- -annotation ("Add Points Tool: Select the curve to add points")
- -category ("Edit Curves")
- -command ("curveAddPtToolScript 4")
- AddPointsTool;
-
- runTimeCommand -default true
- -annotation ("Curve Editing Tool: Select a curve or curve on surface")
- -category ("Edit Curves")
- -command ("curveEditorToolScript 4")
- CurveEditTool;
-
- runTimeCommand -default true
- -annotation ("Project Tangent: Select three curves or any " +
- "number of curves and one surface")
- -category ("Edit Curves")
- -command ("projectTangentToolScript 4")
- ProjectTangent;
-
- runTimeCommand -default true
- -annotation ("Project Tangent Options")
- -category ("Edit Curves")
- -command ("projectTangentToolScript 3")
- ProjectTangentOptions;
-
- //
- // Surfaces menu.
- //
- // ----------------------------------------------------------------------
-
- runTimeCommand -default true
- -annotation ("Revolve: Select curve(s), isoparm(s) or trim edge(s)")
- -category ("Surfaces")
- -command ("revolveToolScript 4")
- Revolve;
-
- runTimeCommand -default true
- -annotation ("Revolve Options")
- -category ("Surfaces")
- -command ("revolveToolScript 3")
- RevolveOptions;
-
- runTimeCommand -default true
- -annotation ("Loft: Select curve(s), isoparm(s) or trim edge(s)")
- -category ("Surfaces")
- -command ("loftToolScript 4")
- Loft;
-
- runTimeCommand -default true
- -annotation ("Loft Options")
- -category ("Surfaces")
- -command ("loftToolScript 3")
- LoftOptions;
-
- runTimeCommand -default true
- -annotation ("Planar: Select curve(s), isoparm(s) or trim edge(s) " +
- "(that together form one or more closed regions)")
- -category ("Surfaces")
- -command ("planarToolScript 4")
- Planar;
-
- runTimeCommand -default true
- -annotation ("Planar Options")
- -category ("Surfaces")
- -command ("planarToolScript 3")
- PlanarOptions;
-
- runTimeCommand -default true
- -annotation ("Extrude: Select curve(s), isoparm(s) or trim " +
- "edge(s). Select the path last")
- -category ("Surfaces")
- -command ("extrudeToolScript 4")
- Extrude;
-
- runTimeCommand -default true
- -annotation ("Extrude Options")
- -category ("Surfaces")
- -command ("extrudeToolScript 3")
- ExtrudeOptions;
-
- runTimeCommand -default true
- -annotation ("Birail 1 Tool: Select curve(s), isoparm(s) or " +
- "trim edge(s)")
- -category ("Surfaces")
- -command ("birailToolScript 4 1")
- Birail1;
-
- runTimeCommand -default true
- -annotation ("Birail 1 Tool Options")
- -category ("Surfaces")
- -command ("birailToolScript 3 1")
- Birail1Options;
-
- runTimeCommand -default true
- -annotation ("Birail 2 Tool: Select curve(s), isoparm(s) or " +
- "trim edge(s)")
- -category ("Surfaces")
- -command ("birailToolScript 4 2")
- Birail2;
-
- runTimeCommand -default true
- -annotation ("Birail 2 Tool Options")
- -category ("Surfaces")
- -command ("birailToolScript 3 2")
- Birail2Options;
-
- runTimeCommand -default true
- -annotation ("Birail 3+ Tool: Select curve(s), isoparm(s) or " +
- "trim edge(s)")
- -category ("Surfaces")
- -command ("birailToolScript 4 3")
- Birail3;
-
- runTimeCommand -default true
- -annotation ("Birail 3+ Tool Options")
- -category ("Surfaces")
- -command ("birailToolScript 3 3")
- Birail3Options;
-
- runTimeCommand -default true
- -annotation ("Boundary: Select 3 or 4 curves, isoparms or trim edges")
- -category ("Surfaces")
- -command ("boundaryToolScript 4")
- Boundary;
-
- runTimeCommand -default true
- -annotation ("Boundary Options")
- -category ("Surfaces")
- -command ("boundaryToolScript 3")
- BoundaryOptions;
-
- runTimeCommand -default true
- -annotation ("Square Surface: Select 3 or 4 curves, isoparms " +
- "or trim edges (order of selection is important)")
- -category ("Surfaces")
- -command ("squareSrfToolScript 4")
- SquareSurface;
-
- runTimeCommand -default true
- -annotation ("Square Surface Options")
- -category ("Surfaces")
- -command ("squareSrfToolScript 3")
- SquareSurfaceOptions;
-
- runTimeCommand -default true
- -annotation ("Bevel: Select curve(s), isoparm(s) or trim edge(s) or CoS")
- -category ("Surfaces")
- -command ("bevelToolScript 4")
- Bevel;
-
- runTimeCommand -default true
- -annotation ("Bevel Options")
- -category ("Surfaces")
- -command ("bevelToolScript 3")
- BevelOptions;
-
- runTimeCommand -default true
- -annotation ("Bevel Plus: Select curve(s), isoparm(s) or trim edge(s) or CoS")
- -category ("Surfaces")
- -command ("bevelPlusToolScript 4")
- BevelPlus;
-
- runTimeCommand -default true
- -annotation ("Bevel Plus Options")
- -category ("Surfaces")
- -command ("bevelPlusToolScript 3")
- BevelPlusOptions;
-
- //
- // Edit NURBS menu.
- //
- // ----------------------------------------------------------------------
-
- runTimeCommand -default true
- -annotation ("Duplicate NURBS Patches: Select NURBS Patch(es)")
- -category ("Edit NURBS")
- -command ("duplicateSurfaceToolScript 4")
- DuplicateNURBSPatches;
-
- runTimeCommand -default true
- -annotation ("Duplicate NURBS Patches Options")
- -category ("Edit NURBS")
- -command ("duplicateSurfaceToolScript 3")
- DuplicateNURBSPatchesOptions;
-
- runTimeCommand -default true
- -annotation ("Project Curve: Select curve(s), isoparm(s) " +
- "or trim edge(s) and a target surface")
- -category ("Edit NURBS")
- -command ("projectToolScript 4")
- ProjectCurveOnSurface;
-
- runTimeCommand -default true
- -annotation ("Project Curve on Surface Options")
- -category ("Edit NURBS")
- -command ("projectToolScript 3")
- ProjectCurveOnSurfaceOptions;
-
- runTimeCommand -default true
- -annotation ("Intersect Surfaces: Select two or more surfaces " +
- "- the last surface intersects all the other ones")
- -category ("Edit NURBS")
- -command ("intersectToolScript 4")
- IntersectSurfaces;
-
- runTimeCommand -default true
- -annotation ("Intersect Surfaces Options")
- -category ("Edit NURBS")
- -command ("intersectToolScript 3")
- IntersectSurfacesOptions;
-
- runTimeCommand -default true
- -annotation ("Trim Tool: Select a surface with a curve on it")
- -category ("Edit NURBS")
- -command ("trimToolScript 4")
- TrimTool;
-
- runTimeCommand -default true
- -annotation ("Trim Tool Options")
- -category ("Edit NURBS")
- -command ("trimToolScript 3")
- TrimToolOptions;
-
- runTimeCommand -default true
- -annotation ("Untrim Surfaces: Select a trimmed surface")
- -category ("Edit NURBS")
- -command ("untrimToolScript 4")
- UntrimSurfaces;
-
- runTimeCommand -default true
- -annotation ("Untrim Surfaces Options")
- -category ("Edit NURBS")
- -command ("untrimToolScript 3")
- UntrimSurfacesOptions;
-
- runTimeCommand -default true
- -annotation ("Union Tool: Select two sets of NURBS surfaces")
- -category ("Edit NURBS")
- -command ("nurbsBooleanToolScript 4 0")
- SurfaceBooleanUnionTool;
-
- runTimeCommand -default true
- -annotation ("Union Tool Options")
- -category ("Edit NURBS")
- -command ("nurbsBooleanToolScript 3 0")
- SurfaceBooleanUnionToolOptions;
-
- runTimeCommand -default true
- -annotation ("Subtract Tool: Select two sets of NURBS surfaces")
- -category ("Edit NURBS")
- -command ("nurbsBooleanToolScript 4 1")
- SurfaceBooleanSubtractTool;
-
- runTimeCommand -default true
- -annotation ("Subtract Tool Options")
- -category ("Edit NURBS")
- -command ("nurbsBooleanToolScript 3 1")
- SurfaceBooleanSubtractToolOptions;
-
- runTimeCommand -default true
- -annotation ("Intersect Tool: Select two sets of NURBS surfaces")
- -category ("Edit NURBS")
- -command ("nurbsBooleanToolScript 4 2")
- SurfaceBooleanIntersectTool;
-
- runTimeCommand -default true
- -annotation ("Intersect Tool Options")
- -category ("Edit NURBS")
- -command ("nurbsBooleanToolScript 3 2")
- SurfaceBooleanIntersectToolOptions;
-
- runTimeCommand -default true
- -annotation ("Attach Surfaces: Select two surfaces")
- -category ("Edit NURBS")
- -command ("attachSrfToolScript 4")
- AttachSurfaces;
-
- runTimeCommand -default true
- -annotation ("Attach Surfaces Options")
- -category ("Edit NURBS")
- -command ("attachSrfToolScript 3")
- AttachSurfacesOptions;
-
- runTimeCommand -default true
- -annotation ("Detach Surfaces: Select isoparm(s)")
- -category ("Edit NURBS")
- -command ("detachSurfaceToolScript 4")
- DetachSurfaces;
-
- runTimeCommand -default true
- -annotation ("Detach Surfaces Options")
- -category ("Edit NURBS")
- -command ("detachSurfaceToolScript 3")
- DetachSurfacesOptions;
-
- runTimeCommand -default true
- -annotation ("Align Surfaces: Select two surfaces")
- -category ("Edit NURBS")
- -command ("alignSurfaceToolScript 4")
- AlignSurfaces;
-
- runTimeCommand -default true
- -annotation ("Align Surfaces Options")
- -category ("Edit NURBS")
- -command ("alignSurfaceToolScript 3")
- AlignSurfacesOptions;
-
- runTimeCommand -default true
- -annotation ("Open/Close Surfaces: Select surface(s) " +
- "or isoparm(s) to give direction")
- -category ("Edit NURBS")
- -command ("closeSurfaceToolScript 4")
- OpenCloseSurfaces;
-
- runTimeCommand -default true
- -annotation ("Open/Close Surfaces Options")
- -category ("Edit NURBS")
- -command ("closeSurfaceToolScript 3")
- OpenCloseSurfacesOptions;
-
- runTimeCommand -default true
- -annotation ("Insert Isoparms: Select isoparm(s)")
- -category ("Edit NURBS")
- -command ("insertSurfaceToolScript 4")
- InsertIsoparms;
-
- runTimeCommand -default true
- -annotation ("Insert Isoparms Options")
- -category ("Edit NURBS")
- -command ("insertSurfaceToolScript 3")
- InsertIsoparmsOptions;
-
- runTimeCommand -default true
- -annotation ("Extend Surfaces: Select surface(s)")
- -category ("Edit NURBS")
- -command ("extendSurfaceToolScript 4")
- ExtendSurfaces;
-
- runTimeCommand -default true
- -annotation ("Extend Surfaces Options")
- -category ("Edit NURBS")
- -command ("extendSurfaceToolScript 3")
- ExtendSurfacesOptions;
-
- runTimeCommand -default true
- -annotation ("Offset Surface: Select NURBS surface(s)")
- -category ("Edit NURBS")
- -command ("offsetSurfaceToolScript 4")
- OffsetSurfaces;
-
- runTimeCommand -default true
- -annotation ("Offset Surface Options")
- -category ("Edit NURBS")
- -command ("offsetSurfaceToolScript 3")
- OffsetSurfacesOptions;
-
- runTimeCommand -default true
- -annotation ("Reverse Surfaces: Select surface(s) " +
- "or isoparm(s) to give direction")
- -category ("Edit NURBS")
- -command ("reverseSurfaceToolScript 4")
- ReverseSurfaceDirection;
-
- runTimeCommand -default true
- -annotation ("Reverse Surfaces Options")
- -category ("Edit NURBS")
- -command ("reverseSurfaceToolScript 3")
- ReverseSurfaceDirectionOptions;
-
- runTimeCommand -default true
- -annotation ("Rebuild Surfaces: Select surface(s)")
- -category ("Edit NURBS")
- -command ("rebuildSurfaceToolScript 4")
- RebuildSurfaces;
-
- runTimeCommand -default true
- -annotation ("Rebuild Surfaces Options")
- -category ("Edit NURBS")
- -command ("rebuildSurfaceToolScript 3")
- RebuildSurfacesOptions;
-
- runTimeCommand -default true
- -annotation ("Round Tool: Select pairs of surface edges that meet")
- -category ("Edit NURBS")
- -command ("roundToolScript 4")
- RoundTool;
-
- runTimeCommand -default true
- -annotation ("Round Tool Options")
- -category ("Edit NURBS")
- -command ("roundToolScript 3")
- RoundToolOptions;
-
- runTimeCommand -default true
- -annotation ("Circular Fillet: Select two surfaces")
- -category ("Edit NURBS")
- -command ("circFilletToolScript 4")
- CircularFillet;
-
- runTimeCommand -default true
- -annotation ("Circular Fillet Options")
- -category ("Edit NURBS")
- -command ("circFilletToolScript 3")
- CircularFilletOptions;
-
- runTimeCommand -default true
- -annotation ("Freeform Fillet: Select two curves " +
- "on surface, isoparms or trim edges")
- -category ("Edit NURBS")
- -command ("freeFilletToolScript 4")
- FreeformFillet;
-
- runTimeCommand -default true
- -annotation ("Freeform Fillet Options")
- -category ("Edit NURBS")
- -command ("freeFilletToolScript 3")
- FreeformFilletOptions;
-
- runTimeCommand -default true
- -annotation ("Fillet Blend Tool: Select curves " +
- "on surface, isoparms or trim edges")
- -category ("Edit NURBS")
- -command ("blendToolScript 4")
- FilletBlendTool;
-
- runTimeCommand -default true
- -annotation ("Fillet Blend Tool Options")
- -category ("Edit NURBS")
- -command ("blendToolScript 3")
- FilletBlendToolOptions;
-
- runTimeCommand -default true
- -annotation ("Stitch Surface Points: Select edge points " +
- "and/or edge CV's on the surface")
- -category ("Edit NURBS")
- -command ("performStitchSurfacePoints(0)")
- StitchSurfacePoints;
-
- runTimeCommand -default true
- -annotation ("Stitch Surface Points Options")
- -category ("Edit NURBS")
- -command ("performStitchSurfacePoints(1)")
- StitchSurfacePointsOptions;
-
- runTimeCommand -default true
- -annotation ("Stitch Edges Tool: Select two isoparms")
- -category ("Edit NURBS")
- -command ("stitchSrfToolScript 4")
- StitchEdgesTool;
-
- runTimeCommand -default true
- -annotation ("Stitch Edges Tool Options")
- -category ("Edit NURBS")
- -command ("stitchSrfToolScript 3")
- StitchEdgesToolOptions;
-
- runTimeCommand -default true
- -annotation ("Global Stitch: Select NURBS surfaces")
- -category ("Edit NURBS")
- -command ("globalStitchToolScript 4")
- GlobalStitch;
-
- runTimeCommand -default true
- -annotation ("Global Stitch Options")
- -category ("Edit NURBS")
- -command ("globalStitchToolScript 3")
- GlobalStitchOptions;
-
- runTimeCommand -default true
- -annotation ("Sculpt Surfaces Tool: Sculpt a NURBS surface")
- -category ("Edit NURBS")
- -command ("puttyToolScript 4")
- SculptSurfacesTool;
-
- runTimeCommand -default true
- -annotation ("Sculpt Surfaces Tool Options")
- -category ("Edit NURBS")
- -command ("puttyToolScript 3")
- SculptSurfacesToolOptions;
-
- runTimeCommand -default true
- -annotation ("Surface Editing Tool: Select a surface")
- -category ("Edit NURBS")
- -command ("surfaceEditorToolScript 4")
- SurfaceEditingTool;
-
- runTimeCommand -default true
- -annotation ("Surface Editing Tool Options")
- -category ("Edit NURBS")
- -command ("surfaceEditorToolScript 3")
- SurfaceEditingToolOptions;
-
- runTimeCommand -default true
- -annotation ("Break Tangent: Select an isoparm or a surface point")
- -category ("Edit NURBS")
- -command ("breakTangentToolScript 4")
- BreakTangent;
-
- runTimeCommand -default true
- -annotation ("Smooth Tangent: Select an isoparm or a surface point")
- -category ("Edit NURBS")
- -command ("smoothTangentToolScript 4")
- SmoothTangent;
-
- //
- // Polygons menu.
- //
- // ----------------------------------------------------------------------
-
- runTimeCommand -default true
- -annotation ("Create Polygon Tool: Create polygon faces")
- -category ("Polygons")
- -command ("setToolTo polyCreateFacetContext ; " +
- "polyCreateFacetCtx -e -pc `optionVar " +
- "-q polyKeepFacetsPlanar` polyCreateFacetContext")
- CreatePolygonTool;
-
- runTimeCommand -default true
- -annotation ("Create Polygon Tool Options")
- -category ("Polygons")
- -command ("setToolTo polyCreateFacetContext ; " +
- "polyCreateFacetCtx -e -pc `optionVar " +
- "-q polyKeepFacetsPlanar` polyCreateFacetContext; " +
- "toolPropertyWindow")
- CreatePolygonToolOptions;
-
- runTimeCommand -default true
- -annotation ("Append to Polygon Tool: Append a face to the " +
- "selected shell. Select border edges to append a face to")
- -category ("Polygons")
- -command ("setToolTo polyAppendFacetContext ; " +
- "polyAppendFacetCtx -e -pc `optionVar " +
- "-q polyKeepFacetsPlanar` polyAppendFacetContext")
- AppendToPolygonTool;
-
- runTimeCommand -default true
- -annotation ("Append to Polygon Tool Options")
- -category ("Polygons")
- -command ("setToolTo polyAppendFacetContext ; " +
- "polyAppendFacetCtx -e -pc `optionVar " +
- "-q polyKeepFacetsPlanar` polyAppendFacetContext; " +
- "toolPropertyWindow")
- AppendToPolygonToolOptions;
-
- runTimeCommand -default true
- -annotation ("Combine: Combine the selected polygon objects " +
- "into one single object to allow operations such " +
- "as merges or face trims")
- -category ("Polygons")
- -command ("polyPerformAction polyUnite o 0")
- CombinePolygons;
-
- runTimeCommand -default true
- -annotation ("Union: Performs a boolean Union on the selected " +
- "polygon objects, creating a new object")
- -category ("Polygons")
- -command ("polyPerformAction \"polyBoolOp -op 1\" o 0")
- PolygonBooleanUnion;
-
- runTimeCommand -default true
- -annotation ("Difference: Performs a boolean Difference on the " +
- "selected polygon objects, creating a new object")
- -category ("Polygons")
- -command ("polyPerformAction \"polyBoolOp -op 2\" o 0")
- PolygonBooleanDifference;
-
- runTimeCommand -default true
- -annotation ("Intersection: Performs a boolean Intersection " +
- "on the selected polygon objects, creating a new object")
- -category ("Polygons")
- -command ("polyPerformAction \"polyBoolOp -op 3\" o 0")
- PolygonBooleanIntersection;
-
- runTimeCommand -default true
- -annotation ("Mirror: Mirror geometry across an axis")
- -category ("Polygons")
- -command ("performPolyMirror 0")
- MirrorPolygonGeometry;
-
- runTimeCommand -default true
- -annotation ("Mirror Options")
- -category ("Polygons")
- -command ("performPolyMirror 1")
- MirrorPolygonGeometryOptions;
-
- runTimeCommand -default true
- -annotation ("Smooth: Add polygons to the selected polygon " +
- "objects to smooth them")
- -category ("Polygons")
- -command ("performPolySmooth 0")
- SmoothPolygon;
-
- runTimeCommand -default true
- -annotation ("Smooth Proxy: Make the selected polygon object " +
- "a proxy for a new smoothed polygon object")
- -category ("Polygons")
- -command ("performSmoothProxy 0")
- SmoothProxy;
-
- runTimeCommand -default true
- -annotation ("Average Vertex: Move selected vertices to round shape")
- -category ("Polygons")
- -command ("polyPerformAction polyAverageVertex v 0")
- AverageVertex;
-
- runTimeCommand -default true
- -annotation ("Smooth Options")
- -category ("Polygons")
- -command ("performPolySmooth 1")
- SmoothPolygonOptions;
-
- runTimeCommand -default true
- -annotation ("Smooth Proxy Options")
- -category ("Polygons")
- -command ("performSmoothProxy 1")
- SmoothProxyOptions;
-
- runTimeCommand -default true
- -annotation ("Reduce : Reduce number of polygonal components " +
- "for selected objects")
- -category ("Polygons")
- -command ("performPolyReduce 0")
- ReducePolygon;
-
- runTimeCommand -default true
- -annotation ("Reduce Options")
- -category ("Polygons")
- -command ("performPolyReduce 1")
- ReducePolygonOptions;
-
- runTimeCommand -default true
- -annotation ("Triangulate: Change the selected faces into triangles")
- -category ("Polygons")
- -command ("polyPerformAction polyTriangulate f 0")
- Triangulate;
-
- runTimeCommand -default true
- -annotation ("Quadrangulate: Change the selected faces " +
- "into quadrilaterals")
- -category ("Polygons")
- -command ("performPolyQuadrangulate 0")
- Quadrangulate;
-
- runTimeCommand -default true
- -annotation ("Quadrangulate Options")
- -category ("Polygons")
- -command ("performPolyQuadrangulate 1")
- QuadrangulateOptions;
-
- runTimeCommand -default true
- -annotation ("NURBS to Polygons: Select nurbs surface(s)")
- -category ("Polygons")
- -command ("performnurbsToPoly 0")
- NURBSToPolygons;
-
- runTimeCommand -default true
- -annotation ("NURBS to Polygons Options")
- -category ("Polygons")
- -command ("performnurbsToPoly 1")
- NURBSToPolygonsOptions;
-
- runTimeCommand -default true
- -annotation ("Cleanup : Select, or select and remove, " +
- "different types of polygonal geometry")
- -category ("Polygons")
- -command ("performPolyCleanup 0")
- CleanupPolygon;
-
- runTimeCommand -default true
- -annotation ("Cleanup Options")
- -category ("Polygons")
- -command ("performPolyCleanup 1")
- CleanupPolygonOptions;
-
- //
- // Edit Polygons menu.
- //
- // ----------------------------------------------------------------------
-
- /*
- // These run time commands need to be created but have not been done
- // so yet because of how the menu items are created that would use
- // them. The script is PolyTextureMenu.mel. And for many of the menu
- // items the command attached depends on the destination of the menu.
- //
- runTimeCommand -default true
- -annotation ("")
- -category ("Edit Polygons")
- -command ("")
- CreateEmptyUVSet;
-
- runTimeCommand -default true
- -annotation ("")
- -category ("Edit Polygons")
- -command ("")
- CopyCurrentUVSet;
-
- runTimeCommand -default true
- -annotation ("")
- -category ("Edit Polygons")
- -command ("")
- PlanarTextureMapping;
-
- runTimeCommand -default true
- -annotation ("")
- -category ("Edit Polygons")
- -command ("")
- CylindricalTextureMapping;
-
- runTimeCommand -default true
- -annotation ("")
- -category ("Edit Polygons")
- -command ("")
- SphericalTextureMapping;
- */
-
- runTimeCommand -default true
- -annotation ("Automatic Projection")
- -category ("Edit Polygons")
- -command ("polyPerformAction polyAutoProjection f 0")
- AutoProjection;
-
- runTimeCommand -default true
- -annotation ("Set the current UV Set on selected objects")
- -category ("Edit Polygons")
- -command ("performSetCurrentUVSet 1")
- SetCurrentUVSet;
-
- runTimeCommand -default true
- -annotation ("Rename the current UV Set on selected objects")
- -category ("Edit Polygons")
- -command ("performRenameCurrentUVSet 1")
- RenameCurrentUVSet;
-
- runTimeCommand -default true
- -annotation ("Delete the current UV Set on selected objects")
- -category ("Edit Polygons")
- -command ("performDeleteCurrentUVSet 0")
- DeleteCurrentUVSet;
-
- /*
- // These run time commands need to be created but have not been done
- // so yet because of how the menu items are created that would use
- // them. The script is PolyTextureMenu.mel. And for many of the menu
- // items the command attached depends on the destination of the menu.
- //
- runTimeCommand -default true
- -annotation ("")
- -category ("Edit Polygons")
- -command ("")
- CreateUVsBasedOnCamera;
- */
-
- runTimeCommand -default true
- -annotation ("Normalize UVs: Normalize UVs of the selected faces")
- -category ("Edit Polygons")
- -command ("performPolyForceUV normalize 0")
- NormalizeUVs;
-
- /*
- // These run time commands need to be created but have not been done
- // so yet because of how the menu items are created that would use
- // them. The script is PolyTextureMenu.mel. And for many of the menu
- // items the command attached depends on the destination of the menu.
- //
- runTimeCommand -default true
- -annotation ("")
- -category ("Edit Polygons")
- -command ("")
- UnitizeUVs;
- */
-
- runTimeCommand -default true
- -annotation ("Flip UVs")
- -category ("Edit Polygons")
- -command ("performPolyForceUV flip 0")
- FlipUVs;
-
- runTimeCommand -default true
- -annotation ("Rotate UVs: Rotate selected UVs about vertex")
- -category ("Edit Polygons")
- -command ("performPolyRotateUVs 0")
- RotateUVs;
-
- runTimeCommand -default true
- -annotation ("Best Plane Texturing Tool: Create UVs by " +
- "computing the best fitting plane")
- -category ("Edit Polygons")
- -command ("setToolTo polyBestPlaneTexturingContext")
- BestPlaneTexturingTool;
-
- runTimeCommand -default true
- -annotation ("Map UV Border: Map the texture border indicated " +
- "by selected UV to specified shape")
- -category ("Edit Polygons")
- -command ("performPolyUntangleUV map 0")
- MapUVBorder;
-
- runTimeCommand -default true
- -annotation ("Relax UVs : Relax the selected UVs")
- -category ("Edit Polygons")
- -command ("performPolyUntangleUV relax 0")
- RelaxUVShell;
-
- runTimeCommand -default true
- -annotation ("Layout UVs: Lay out the UV pieces in the texture plane to avoid ovelaps")
- -category ("Edit Polygons")
- -command ("polyPerformAction polyLayoutUV f 0")
- LayoutUV;
-
- runTimeCommand -default true
- -annotation ("Grid UVSs: Snap selected UVs to user specified grid")
- -category ("Edit Polygons")
- -command ("performPolyGridUV 0")
- GridUV;
-
- runTimeCommand -default true
- -annotation ("Grid UV Options")
- -category ("Edit Polygons")
- -command ("performPolyGridUV 1")
- GridUVOptions;
-
- runTimeCommand -default true
- -annotation ("Cut UVs: Separate the texture coordinates along " +
- "the selected edges")
- -category ("Edit Polygons")
- -command ("polyPerformAction polyMapCut e 0")
- CutUVs;
-
- runTimeCommand -default true
- -annotation ("Sew UVs: Sew the textures together along the " +
- "selected edges")
- -category ("Edit Polygons")
- -command ("polyPerformAction polyMapSew e 0")
- SewUVs;
-
- runTimeCommand -default true
- -annotation ("Move and Sew UVs: Sew the textures together along the selected edges. Pieces are moved according to common edges")
- -category ("Edit Polygons")
- -command ("polyPerformAction polyMapSewMove e 0")
- MoveSewUVs;
-
- runTimeCommand -default true
- -annotation ("Delete UVs: Deletes the texture coordinates " +
- "of the selected faces")
- -category ("Edit Polygons")
- -command ("polyPerformAction polyMapDel f 0")
- DeleteUVs;
-
- runTimeCommand -default true
- -annotation ("Subdivide: Subdivide the selected edges or faces")
- -category ("Edit Polygons")
- -command ("performPolySubdivide \"\" 0")
- SubdividePolygon;
-
- runTimeCommand -default true
- -annotation ("Subdivide Options")
- -category ("Edit Polygons")
- -command ("performPolySubdivide \"\" 1")
- SubdividePolygonOptions;
-
- runTimeCommand -default true
- -annotation ("Split Polygon Tool: Select a point on an edge " +
- "to start cutting the face")
- -category ("Edit Polygons")
- -command ("setToolTo polySplitContext")
- SplitPolygonTool;
-
- runTimeCommand -default true
- -annotation ("Split Polygon Tool Options")
- -category ("Edit Polygons")
- -command ("setToolTo polySplitContext ; toolPropertyWindow")
- SplitPolygonToolOptions;
-
- runTimeCommand -default true
- -annotation ("Paint Reduce Weights Tool: Paint vertices with importance. A higher value means it is less likely to be reduced.")
- -category ("Edit Polygons")
- -command ("polyLaunchPaintReduceTool")
- PaintReduceWeightsTool;
-
- runTimeCommand -default true
- -annotation ("Paint Reduce Weights Tool Options")
- -category ("Edit Polygons")
- -command ("PaintReduceWeightsTool; toolPropertyWindow;")
- PaintReduceWeightsToolOptions;
-
- runTimeCommand -default true
- -annotation ("Extrude Face: Extrude the currently selected faces " +
- "and control the extrusion using the manipulators")
- -category ("Edit Polygons")
- -command ("performPolyChipOff 0 2")
- ExtrudeFace;
-
- runTimeCommand -default true
- -annotation ("Extrude Face Options")
- -category ("Edit Polygons")
- -command ("performPolyChipOff 1 2")
- ExtrudeFaceOptions;
-
- runTimeCommand -default true
- -annotation ("Extrude Edge: Extrude the currently selected edges " +
- "and control the extrusion using the manipulators")
- -category ("Edit Polygons")
- -command ("performPolyChipOff 0 4")
- ExtrudeEdge;
-
- runTimeCommand -default true
- -annotation ("Extrude Edge Options")
- -category ("Edit Polygons")
- -command ("performPolyChipOff 1 4")
- ExtrudeEdgeOptions;
-
- runTimeCommand -default true
- -annotation ("Extrude Vertex: Extrude the currently selected vertices " +
- "and control the extrusion using the channelbox")
- -category ("Edit Polygons")
- -command ("performPolyExtrudeVertex 0")
- ExtrudeVertex;
-
- runTimeCommand -default true
- -annotation ("Extrude Vertex Options")
- -category ("Edit Polygons")
- -command ("performPolyExtrudeVertex 1")
- ExtrudeVertexOptions;
-
- runTimeCommand -default true
- -annotation ("ChamferVertex: Chamfer the selected vertices")
- -category ("Edit Polygons")
- -command ("performPolyChamferVertex 0")
- ChamferVertex;
-
- runTimeCommand -default true
- -annotation ("ChamferVertex Options")
- -category ("Edit Polygons")
- -command ("performPolyChamferVertex 1")
- ChamferVertexOptions;
-
- runTimeCommand -default true
- -annotation ("Bevel: Create a bevel along the selected edges")
- -category ("Edit Polygons")
- -command ("performPolyBevel 0")
- BevelPolygon;
-
- runTimeCommand -default true
- -annotation ("Bevel Options")
- -category ("Edit Polygons")
- -command ("performPolyBevel 1")
- BevelPolygonOptions;
-
- runTimeCommand -default true
- -annotation ("Cut Faces: Cut the faces using a plane")
- -category ("Edit Polygons")
- -command ("performPolyCut 0")
- CutPolygon;
-
- runTimeCommand -default true
- -annotation ("Cut Options")
- -category ("Edit Polygons")
- -command ("performPolyCut 1")
- CutPolygonOptions;
-
- runTimeCommand -default true
- -annotation ("Poke Faces: Poke the selected faces by creating " +
- "a new vertex at the center of each face")
- -category ("Edit Polygons")
- -command ("performPolyPoke 0")
- PokePolygon;
-
- runTimeCommand -default true
- -annotation ("Poke Options")
- -category ("Edit Polygons")
- -command ("performPolyPoke 1")
- PokePolygonOptions;
-
- runTimeCommand -default true
- -annotation ("Wedge Faces: Wedge the selected faces by extruding " +
- "& rotating them about a selected edge in those faces")
- -category ("Edit Polygons")
- -command ("performPolyWedgeFace 0")
- WedgePolygon;
-
- runTimeCommand -default true
- -annotation ("Wedge Options")
- -category ("Edit Polygons")
- -command ("performPolyWedgeFace 1")
- WedgePolygonOptions;
-
- runTimeCommand -default true
- -annotation ("Merge Vertices: Merge selected vertices if " +
- "within a given distance")
- -category ("Edit Polygons")
- -command ("performPolyMergeVertex 0")
- MergeVertices;
-
- runTimeCommand -default true
- -annotation ("Merge Vertices Options")
- -category ("Edit Polygons")
- -command ("performPolyMergeVertex 1")
- MergeVerticesOptions;
-
- runTimeCommand -default true
- -annotation ("Merge Multiple Edges: Merge selected edge " +
- "pairs if within a given threshold")
- -category ("Edit Polygons")
- -command ("performPolySewEdge 0")
- MergeMultipleEdges;
-
- runTimeCommand -default true
- -annotation ("Merge Multiple Edges Options")
- -category ("Edit Polygons")
- -command ("performPolySewEdge 1")
- MergeMultipleEdgesOptions;
-
- runTimeCommand -default true
- -annotation ("Merge Edge Tool: Merge the two selected border " +
- "edges, if topologically possible")
- -category ("Edit Polygons")
- -command ("setToolTo polyMergeEdgeContext")
- MergeEdgeTool;
-
- runTimeCommand -default true
- -annotation ("Merge Edge Tool Options")
- -category ("Edit Polygons")
- -command ("setToolTo polyMergeEdgeContext; toolPropertyWindow;")
- MergeEdgeToolOptions;
-
- runTimeCommand -default true
- -annotation ("Flip Edge: Flip the edge between two triangles")
- -category ("Edit Polygons")
- -command ("polyFlipEdge")
- FlipTriangleEdge;
-
- runTimeCommand -default true
- -annotation ("Collapse: Collapse the selected edges or faces")
- -category ("Edit Polygons")
- -command ("performPolyCollapse 0")
- PolygonCollapse;
-
- runTimeCommand -default true
- -annotation ("Split Vertex: Split selected vertices, creating a " +
- "unique vertex per face")
- -category ("Edit Polygons")
- -command ("polySplitVertex")
- SplitVertex;
-
- runTimeCommand -default true
- -annotation ("Delete Vertex: Delete selected vertices and their attached edges")
- -category ("Edit Polygons")
- -command ("polyDeleteVertex")
- DeleteVertex;
-
- runTimeCommand -default true
- -annotation ("Delete Edge: Delete non-border edges and " +
- "cleanup their vertices")
- -category ("Edit Polygons")
- -command ("polyPerformAction \"polyDelEdge -cv true\" e 0")
- DeleteEdge;
-
- runTimeCommand -default true
- -annotation ("Duplicate Face: Duplicate the currently selected " +
- "faces in a new shell and shows a manipulator to " +
- "adjust their offset")
- -category ("Edit Polygons")
- -command ("performPolyChipOff 0 1")
- DuplicateFace;
-
- runTimeCommand -default true
- -annotation ("Duplicate Face Options")
- -category ("Edit Polygons")
- -command ("performPolyChipOff 1 1")
- DuplicateFaceOptions;
-
- runTimeCommand -default true
- -annotation ("Extract: Extract the currently selected faces " +
- "from their shell and shows a manipulator to adjust " +
- "their offset")
- -category ("Edit Polygons")
- -command ("performPolyChipOff 0 0")
- ExtractFace;
-
- runTimeCommand -default true
- -annotation ("Extract Options")
- -category ("Edit Polygons")
- -command ("performPolyChipOff 1 0")
- ExtractFaceOptions;
-
- runTimeCommand -default true
- -annotation ("Separate: Separate the selected polygon object, " +
- "creating one single object for each distinct shell")
- -category ("Edit Polygons")
- -command ("polyPerformAction polySeparate o 0")
- SeparatePolygon;
-
- runTimeCommand -default true
- -annotation ("Make Hole Tool: Make a hole in first " +
- "selected face using second face (of same object) to shape the hole")
- -category ("Edit Polygons")
- -command ("setToolTo polyMergeFacetContext")
- MakeHoleTool;
-
- runTimeCommand -default true
- -annotation ("Make Hole Tool Options")
- -category ("Edit Polygons")
- -command ("setToolTo polyMergeFacetContext; toolPropertyWindow;")
- MakeHoleToolOptions;
-
- runTimeCommand -default true
- -annotation ("Fill Hole: Create a face filling the hole " +
- "around the selected border edge(s)")
- -category ("Edit Polygons")
- -command ("polyPerformAction polyCloseBorder e 0")
- FillHole;
-
- runTimeCommand -default true
- -annotation ("Sculpt Polygons Tool: Sculpt a polygonal surface")
- -category ("Edit Polygons")
- -command ("puttyPolyToolScript 4")
- SculptPolygonsTool;
-
- runTimeCommand -default true
- -annotation ("Sculpt Polygons Tool Options")
- -category ("Edit Polygons")
- -command ("puttyPolyToolScript 3")
- SculptPolygonsToolOptions;
-
- runTimeCommand -default true
- -annotation ("Copy: Copy colors, UVs, and or shaders from a " +
- "face to the clipboard")
- -category ("Edit Polygons")
- -command ("performPolyCopyPaste 0 1")
- PolygonCopy;
-
- runTimeCommand -default true
- -annotation ("Copy Options")
- -category ("Edit Polygons")
- -command ("performPolyCopyPaste 1 1")
- PolygonCopyOptions;
-
- runTimeCommand -default true
- -annotation ("Paste: Paste colors, UVs, and or shaders to " +
- "face(s) from clipboard")
- -category ("Edit Polygons")
- -command ("performPolyCopyPaste 0 2")
- PolygonPaste;
-
- runTimeCommand -default true
- -annotation ("Paste Options")
- -category ("Edit Polygons")
- -command ("performPolyCopyPaste 1 2")
- PolygonPasteOptions;
-
- runTimeCommand -default true
- -annotation ("Clear Clipboard: Clear colors, UVs, and or " +
- "shaders between faces from clipboard")
- -category ("Edit Polygons")
- -command ("performPolyCopyPaste 0 3")
- PolygonClearClipboard;
-
- runTimeCommand -default true
- -annotation ("Clear Clipboard Options")
- -category ("Edit Polygons")
- -command ("performPolyCopyPaste 1 3")
- PolygonClearClipboardOptions;
-
- runTimeCommand -default true
- -annotation ("Grow Selection Region: Grow the selected region " +
- "along the polygon surface")
- -category ("Edit Polygons")
- -command ("PolySelectTraverse 1")
- GrowPolygonSelectionRegion;
-
- runTimeCommand -default true
- -annotation ("Shrink Selection Region: Shrink the selected " +
- "region along the polygon surface")
- -category ("Edit Polygons")
- -command ("PolySelectTraverse 2")
- ShrinkPolygonSelectionRegion;
-
- runTimeCommand -default true
- -annotation ("Select Selection Boundary: Select the boundary " +
- "of the current selection region")
- -category ("Edit Polygons")
- -command ("PolySelectTraverse 3")
- SelectPolygonSelectionBoundary;
-
- runTimeCommand -default true
- -annotation ("Select Contiguous Edges: Select all contiguous " +
- "edges that form a loop with the current selection")
- -category ("Edit Polygons")
- -command ("performSelContiguousEdges 0")
- SelectContiguousEdges;
-
- runTimeCommand -default true
- -annotation ("Select Contiguous Edges Options")
- -category ("Edit Polygons")
- -command ("performSelContiguousEdges 1")
- SelectContiguousEdgesOptions;
-
- runTimeCommand -default true
- -annotation ("Convert Selection to Faces: Convert selected " +
- "components to selected face component")
- -category ("Edit Polygons")
- -command ("PolySelectConvert 1")
- ConvertSelectionToFaces;
-
- runTimeCommand -default true
- -annotation ("Convert Selection to Edges: Convert selected " +
- "components to selected edge component")
- -category ("Edit Polygons")
- -command ("PolySelectConvert 2")
- ConvertSelectionToEdges;
-
- runTimeCommand -default true
- -annotation ("Convert Selection to Vertices: Convert selected " +
- "components to selected vertex component")
- -category ("Edit Polygons")
- -command ("PolySelectConvert 3")
- ConvertSelectionToVertices;
-
- runTimeCommand -default true
- -annotation ("Convert Selection to UVs: Convert selected " +
- "components to selected UV component")
- -category ("Edit Polygons")
- -command ("PolySelectConvert 4")
- ConvertSelectionToUVs;
-
- runTimeCommand -default true
- -annotation ("Convert Selection to Vertex Faces: Convert selected " +
- "components to selected vertex face component")
- -category ("Edit Polygons")
- -command ("PolySelectConvert 5")
- ConvertSelectionToVertexFaces;
-
- runTimeCommand -default true
- -annotation ("Selection Constraints: Set logical selection " +
- "constraints of components of the selected " +
- "polygonal surfaces")
- -category ("Window")
- -command ("openSelectionConstraintWindow")
- PolygonSelectionConstraints;
-
- runTimeCommand -default true
- -annotation ("Apply Color : Apply a color to selected vertices")
- -category ("Edit Polygons")
- -command ("performApplyColor 0")
- PolygonApplyColor;
-
- runTimeCommand -default true
- -annotation ("Apply Color Options")
- -category ("Edit Polygons")
- -command ("performApplyColor 1")
- PolygonApplyColorOptions;
-
- runTimeCommand -default true
- -annotation ("Prelight: Perform prelighting to selected components")
- -category ("Edit Polygons")
- -command ("performPrelight 0")
- PrelightPolygon;
-
- runTimeCommand -default true
- -annotation ("Prelight Options")
- -category ("Edit Polygons")
- -command ("performPrelight 1")
- PrelightPolygonOptions;
-
- runTimeCommand -default true
- -annotation ("Paint Vertex Color Tool: Paint a specified " +
- "color value and alpha on polygon vertices")
- -category ("Edit Polygons")
- -command ("artAttrColorPerVertexToolScript 4")
- PaintVertexColorTool;
-
- runTimeCommand -default true
- -annotation ("Paint Vertex Color Tool Options")
- -category ("Edit Polygons")
- -command ("artAttrColorPerVertexToolScript 3")
- PaintVertexColorToolOptions;
-
- runTimeCommand -default true
- -annotation ("Set Vertex Normal: Set the value of normals " +
- "of selected vertices or vertex-faces")
- -category ("Edit Polygons")
- -command ("performPolySetNormal 0")
- SetVertexNormal;
-
- runTimeCommand -default true
- -annotation ("Set Vertex Normal Options")
- -category ("Edit Polygons")
- -command ("performPolySetNormal 1")
- SetVertexNormalOptions;
-
- runTimeCommand -default true
- -annotation ("Average Normals: Set the normals of selected " +
- "vertices or vertex-faces within a specified " +
- "distance of each other to their average")
- -category ("Edit Polygons")
- -command ("performPolyAverageNormal 0")
- AveragePolygonNormals;
-
- runTimeCommand -default true
- -annotation ("Average Normals Options")
- -category ("Edit Polygons")
- -command ("performPolyAverageNormal 1")
- AveragePolygonNormalsOptions;
-
- runTimeCommand -default true
- -annotation ("Set to Face Normals: Set the normals of selected " +
- "vertices or vertex-faces to their face normals " +
- "and unshare them")
- -category ("Edit Polygons")
- -command ("performPolySetToFaceNormal 0")
- SetToFaceNormals;
-
- runTimeCommand -default true
- -annotation ("Set to Face Normals Options")
- -category ("Edit Polygons")
- -command ("performPolySetToFaceNormal 1")
- SetToFaceNormalsOptions;
-
- runTimeCommand -default true
- -annotation ("Reverse: Reverse the normals of the selected faces")
- -category ("Edit Polygons")
- -command ("performPolyNormal 0 -1 0")
- ReversePolygonNormals;
-
- runTimeCommand -default true
- -annotation ("Reverse Options")
- -category ("Edit Polygons")
- -command ("performPolyNormal 1 -1 0")
- ReversePolygonNormalsOptions;
-
- runTimeCommand -default true
- -annotation ("Conform: Make normals of all selected faces point " +
- "in a consistent direction")
- -category ("Edit Polygons")
- -command ("performPolyNormal 0 2 0")
- ConformPolygonNormals;
-
- runTimeCommand -default true
- -annotation ("Soften/Harden: Set the soft/hard threshold " +
- "angles for edge normals")
- -category ("Edit Polygons")
- -command ("performPolySoftEdge 0")
- PolygonSoftenHarden;
-
- runTimeCommand -default true
- -annotation ("Soften/Harden Options")
- -category ("Edit Polygons")
- -command ("performPolySoftEdge 1")
- PolygonSoftenHardenOptions;
-
- runTimeCommand -default true
- -annotation ("Move Component: Transform (Scale, Rotate, " +
- "Translate...) the selected components (Vertices, " +
- "Edges or Faces). UVs are moved in the UV Texture Editor")
- -category ("Edit Polygons")
- -command ("performPolyMove \"\" 0")
- MovePolygonComponent;
-
- runTimeCommand -default true
- -annotation ("Move Component Options")
- -category ("Edit Polygons")
- -command ("performPolyMove \"\" 1")
- MovePolygonComponentOptions;
-
- //
- // Subdiv Surfaces menu.
- //
- // ----------------------------------------------------------------------
-
- runTimeCommand -default true
- -annotation ("Create Subdiv Surface")
- -category ("Subdiv Surfaces")
- -command ("performSubdivCreate 0")
- CreateSubdivSurface;
-
- runTimeCommand -default true
- -annotation ("Subdiv To NURBS")
- -category ("Subdiv Surfaces")
- -command ("performSubdToNurbs 0")
- SubdivToNURBS;
-
- runTimeCommand -default true
- -annotation ("Subdiv To NURBS Options")
- -category ("Subdiv Surfaces")
- -command ("performSubdToNurbs true")
- SubdivToNURBSOptions;
-
- runTimeCommand -default true
- -annotation ("Create Subdiv Surface Options")
- -category ("Subdiv Surfaces")
- -command ("performSubdivCreate 1")
- CreateSubdivSurfaceOptions;
-
- runTimeCommand -default true
- -annotation ("Tessellate Subdiv Surface")
- -category ("Subdiv Surfaces")
- -command ("performSubdivTessellate false")
- TesselateSubdivSurface;
-
- runTimeCommand -default true
- -annotation ("Tessellate Subdiv Surface Options")
- -category ("Subdiv Surfaces")
- -command ("performSubdivTessellate true")
- TesselateSubdivSurfaceOptions;
-
- runTimeCommand -default true
- -annotation ("Extract Subdiv Surface Vertices")
- -category ("Subdiv Surfaces")
- -command ("performSubdivExtract false")
- ExtractSubdivSurfaceVertices;
-
- runTimeCommand -default true
- -annotation ("Extract Subdiv Surface Vertices Options")
- -category ("Subdiv Surfaces")
- -command ("performSubdivExtract true")
- ExtractSubdivSurfaceVerticesOptions;
-
- runTimeCommand -default true
- -annotation ("Remove a number of low levels of the " +
- "subdivision surface hieararchy")
- -category ("Subdiv Surfaces")
- -command ("performSubdivCollapse false")
- CollapseSubdivSurfaceHierarchy;
-
- runTimeCommand -default true
- -annotation ("Collapse Subdiv Surface Options")
- -category ("Subdiv Surfaces")
- -command ("performSubdivCollapse true")
- CollapseSubdivSurfaceHierarchyOptions;
-
- runTimeCommand -default true
- -annotation ("Mirror subdivision surface geometry")
- -category ("Subdiv Surfaces")
- -command ("performSubdivMirror false")
- MirrorSubdivSurface;
-
- runTimeCommand -default true
- -annotation ("Mirror Subdiv Surface Options")
- -category ("Subdiv Surfaces")
- -command ("performSubdivMirror true")
- MirrorSubdivSurfaceOptions;
-
- runTimeCommand -default true
- -annotation ("Attach two subdivision surfaces")
- -category ("Subdiv Surfaces")
- -command ("performSubdivAttach false")
- AttachSubdivSurface;
-
- runTimeCommand -default true
- -annotation ("Attach Subdiv Surface Options")
- -category ("Subdiv Surfaces")
- -command ("performSubdivAttach true")
- AttachSubdivSurfaceOptions;
-
- runTimeCommand -default true
- -annotation ("Put the subdivision surface into standard editing mode")
- -category ("Subdiv Surfaces")
- -command ("subdIntoHierMode")
- SubdivSurfaceHierarchyMode;
-
- runTimeCommand -default true
- -annotation ("Put the subdivision surface into the polygon proxy mode")
- -category ("Subdiv Surfaces")
- -command ("subdIntoPolyMode 1 0 0")
- SubdivSurfacePolygonProxyMode;
-
- runTimeCommand -default true
- -annotation ("Match Topology (at all levels) of selected subdivision surfaces")
- -category ("Subdiv Surfaces")
- -command ("subdMatchTopology")
- SubdivSurfaceMatchTopology;
-
- runTimeCommand -default true
- -annotation ("Remove unnecessary finer level points from selected subdivision surfaces")
- -category ("Subdiv Surfaces")
- -command ("subdCleanTopology")
- SubdivSurfaceCleanTopology;
-
- runTimeCommand -default true
- -annotation ("Full Crease Subdivision Surface Edge or Vertex " +
- "(tangent break)")
- -category ("Subdiv Surfaces")
- -command ("doSubdCrease 1 1")
- FullCreaseSubdivSurface;
-
- runTimeCommand -default true
- -annotation ("Partial Crease Subdivision Surface Edge or " +
- "Vertex (no tangent break)")
- -category ("Subdiv Surfaces")
- -command ("doSubdCrease 1 0")
- PartialCreaseSubdivSurface;
-
- runTimeCommand -default true
- -annotation ("Uncrease Subdivision Surface Edge or Vertex")
- -category ("Subdiv Surfaces")
- -command ("doSubdCrease 0 1")
- UncreaseSubdivSurface;
-
- runTimeCommand -default true
- -annotation ("Refine selected subdivision surface components")
- -category ("Subdiv Surfaces")
- -command ("subdivCreateRegion; " +
- "setSubdivDisplayLevelAndFilter `ls -sl -objectsOnly` " +
- "\"+0\" 0")
- RefineSelectedComponents;
-
- runTimeCommand -default true
- -annotation ("Expand selected subdivision surface components")
- -category ("Subdiv Surfaces")
- -command ("createSubdivRegion; changeSubdivRegion -action 2; " +
- "setSubdivDisplayLevelAndFilter `ls -sl -objectsOnly` " +
- "\"+0\" 0")
- ExpandSelectedComponents;
-
- runTimeCommand -default true
- -annotation ("Finer Level Component Display")
- -category ("Subdiv Surfaces")
- -command ("setSubdivDisplayLevelAndFilter `ls -sl -objectsOnly` \"+1\" 0")
- FineLevelComponentDisplay;
-
- runTimeCommand -default true
- -annotation ("Coarser Level Component Display")
- -category ("Subdiv Surfaces")
- -command ("setSubdivDisplayLevelAndFilter `ls -sl -objectsOnly` \"-1\" 0")
- CoarseLevelComponentDisplay;
-
- runTimeCommand -default true
- -annotation ("Base Level Component Display")
- -category ("Subdiv Surfaces")
- -command ("setSubdivDisplayLevelAndFilter `ls -sl -objectsOnly` \"0\" 0")
- BaseLevelComponentDisplay;
-
- runTimeCommand -default true
- -annotation ("Coarser Level")
- -category ("Subdiv Surfaces")
- -command ("subdivCoarserLevel")
- CoarserSubdivLevel;
-
- runTimeCommand -default true
- -annotation ("Subdiv Create Region")
- -category ("Subdiv Surfaces")
- -command ("subdivCreateRegion")
- CreateSubdivRegion;
-
- runTimeCommand -default true
- -annotation ("Show All Components At Current Level")
- -category ("Subdiv Surfaces")
- -command ("setSubdivDisplayLevelAndFilter `ls -sl -objectsOnly` \"+0\" 0")
- ShowAllComponents;
-
- runTimeCommand -default true
- -annotation ("Show All Edited Components At Current Level")
- -category ("Subdiv Surfaces")
- -command ("setSubdivDisplayLevelAndFilter `ls -sl -objectsOnly` \"+0\" 1")
- ShowAllEditedComponents;
-
- runTimeCommand -default true
- -annotation ("Cut UVs: Separate the texture coordinates along " +
- "the selected edges")
- -category ("Subdiv Surfaces")
- -command ("subdMapCut")
- SubdCutUVs;
- }
- modelingMenus();
-
- // ======================================================================
- // ======================================================================
- //
- // Animation menu set, ie. Animate, Deform, Skeleton, Skin, Constrain,
- // and Character.
- //
- // ======================================================================
- // ======================================================================
- proc animationMenus() {
- //
- // Animate menu.
- //
- // ----------------------------------------------------------------------
-
- // Set Key.
- //
- runTimeCommand -default true
- -annotation ("Set Key: Select object(s) to key")
- -category ("Animate")
- -command ("performSetKeyframeArgList 1 {\"0\", \"animationList\"}")
- SetKey;
-
- runTimeCommand -default true
- -annotation ("Set Key Options")
- -category ("Animate")
- -command ("performSetKeyframeArgList 1 {\"1\", \"animationList\"}")
- SetKeyOptions;
-
- // Set a breakdown key.
- //
- runTimeCommand -default true
- -annotation ("Set Breakdown")
- -category ("Animate")
- -command ("performSetBreakdown 0 animationList")
- SetBreakdownKey;
-
- runTimeCommand -default true
- -annotation ("Set Breakdown Options")
- -category ("Animate")
- -command ("performSetBreakdown 1 animationList")
- SetBreakdownKeyOptions;
-
- // Hold Current Keys.
- //
- runTimeCommand -default true
- -annotation ("Hold Current Keys")
- -category ("Animate")
- -command ("setKeyframe -insert animationList")
- HoldCurrentKeys;
-
- // Set Driven Key.
- //
- runTimeCommand -default true
- -annotation ("Set Driven Key")
- -category ("Animate")
- -command ("setDrivenKeyframe")
- SetDrivenKey;
-
- runTimeCommand -default true
- -annotation ("Set Driven Key Options")
- -category ("Animate")
- -command ("setDrivenKeyWindow \"\" \"\"")
- SetDrivenKeyOptions;
-
- // Go to Previous Driven Key.
- //
- runTimeCommand -default true
- -annotation ("Go to Previous Driven Key")
- -category ("Animate")
- -command ("advanceToNextDrivenKey -previous \"\"")
- GoToPreviousDrivenKey;
-
- // Go to Next Driven Key.
- //
- runTimeCommand -default true
- -annotation ("Go to Next Driven Key")
- -category ("Animate")
- -command ("advanceToNextDrivenKey -next \"\"")
- GoToNextDrivenKey;
-
- // Set key for translate/rotate/scale.
- //
- runTimeCommand -default true
- -annotation ("Set Key for Translate")
- -category ("Animate")
- -command "setKeyframe -at translate"
- SetKeyTranslate;
-
- runTimeCommand -default true
- -annotation ("Set Key for Rotate")
- -category ("Animate")
- -command "setKeyframe -at rotate"
- SetKeyRotate;
-
- runTimeCommand -default true
- -annotation ("Set Key for Scale")
- -category ("Animate")
- -command "setKeyframe -at scale"
- SetKeyScale;
-
- // Create Clip.
- //
- runTimeCommand -default true
- -annotation ("Create Clip")
- -category ("Animate")
- -command ("performCreateClip 0")
- CreateClip;
-
- runTimeCommand -default true
- -annotation ("Create Clip Options")
- -category ("Animate")
- -command ("performCreateClip 1")
- CreateClipOptions;
-
- // Create Pose
- //
- runTimeCommand -default true
- -annotation ("Create Pose")
- -category ("Animate")
- -command ("performCreatePose 0")
- CreatePose;
-
- runTimeCommand -default true
- -annotation ("Create Pose Options")
- -category ("Animate")
- -command ("performCreatePose 1")
- CreatePoseOptions;
-
- // Create Ghost
- //
- runTimeCommand -default true
- -annotation ("Ghost: Select object(s) to be ghosted.")
- -category ("Animate")
- -command ("performGhost 0")
- CreateGhost;
-
- runTimeCommand -default true
- -annotation ("Create Ghost Options")
- -category ("Animate")
- -command ("performGhost 1")
- CreateGhostOptions;
-
- // Create Ghost
- //
- runTimeCommand -default true
- -annotation ("Unghost: Select object(s) to be unghosted.")
- -category ("Animate")
- -command ("performUnghost 0")
- DoUnghost;
-
- runTimeCommand -default true
- -annotation ("Unghost Options")
- -category ("Animate")
- -command ("performUnghost 1")
- DoUnghostOptions;
-
- // Create Motion Trail
- //
- runTimeCommand -default true
- -annotation ("Motion Trail: Select object(s) to generate a "
- + "motion trail over time")
- -category ("Animate")
- -command ("performMotionTrail 0")
- CreateMotionTrail;
-
- runTimeCommand -default true
- -annotation ("Motion Trail Options")
- -category ("Animate")
- -command ("performMotionTrail 1")
- CreateMotionTrailOptions;
-
- runTimeCommand -default true
- -annotation ("Animation Snapshot: Select animated object(s) to " +
- "snapshot over time")
- -category ("Animate")
- -command ("performSnapshot 0")
- AnimationSnapshot;
-
- runTimeCommand -default true
- -annotation ("Animation Snapshot Options")
- -category ("Animate")
- -command ("performSnapshot 1")
- AnimationSnapshotOptions;
-
- runTimeCommand -default true
- -annotation ("Animation Sweep: Select animated curve(s) to copy " +
- "over time and then loft into a surface")
- -category ("Animate")
- -command ("performAnimSweep 0")
- AnimationSweep;
-
- runTimeCommand -default true
- -annotation ("Animation Sweep Options")
- -category ("Animate")
- -command ("performAnimSweep 1")
- AnimationSweepOptions;
-
- // IK/FK switching
- //
- runTimeCommand -default true
- -annotation ("Toggle between FK and IK mode for current selection")
- -category ("Animate")
- -command "updateIKFKState"
- ToggleFkIk;
-
- runTimeCommand -default true
- -annotation ("Set keys on selected joint chains and handles")
- -category ("Animate")
- -command "ikFK(1, `ls -sl`)"
- SetIKFKKeyframe;
-
- runTimeCommand -default true
- -annotation ("Set an object to control IK/FK")
- -category ("Animate")
- -command "connectToIKFK()"
- ConnectNodeToIKFK;
-
- runTimeCommand -default true
- -annotation ("Move IK handle to FK joint location")
- -category ("Animate")
- -command "moveIKtoFK()"
- MoveIKtoFK;
-
- // Set Key Path.
- //
- runTimeCommand -default true
- -annotation ("Set Motion Path Key: Select object to key a motion path")
- -category ("Animate")
- -command ("setKeyPath")
- SetKeyPath;
-
- // Animate object(s) along a path, followed by the path curve.
- //
- runTimeCommand -default true
- -annotation ("Attach to Motion Path: Select object(s) to animate "
- + "along a motion path, followed by the motion path curve")
- -category ("Animate")
- -command ("performPathAnimation 0")
- AttachToPath;
-
- runTimeCommand -default true
- -annotation ("Attach to Motion Path Options")
- -category ("Animate")
- -command ("performPathAnimation 1")
- AttachToPathOptions;
-
- // Set object(s) to flow along path
- //
- runTimeCommand -default true
- -annotation ("Flow Path Object")
- -category ("Animate")
- -command ("performFlow 0")
- FlowPathObject;
-
- runTimeCommand -default true
- -annotation ("Flow Path Object Options")
- -category ("Animate")
- -command ("performFlow 1")
- FlowPathObjectOptions;
-
- // Key and Tangent marking menus.
- //
- runTimeCommand -default true
- -annotation ("Keyframe and Tangent Marking Menu")
- -category ("Animate")
- -command ("buildKeyframeTangentMM")
- KeyframeTangentMarkingMenu;
-
- runTimeCommand -default true
- -annotation ("Keyframe and Tangent Marking Menu Pop Down")
- -category ("Animate")
- -command ("MarkingMenuPopDown")
- KeyframeTangentMarkingMenuPopDown;
-
- //
- // Graph Editor Menus.
- //
- // ----------------------------------------------------------------------
-
- int $performBase = 3;
- string $graphEd = "graphEditor1GraphEd";
- string $selectionConnection = "graphEditor1GraphEd";
- string $options = "useSmoothness bufferCurve";
-
- // Graph Editor Edit Menu:
- //
-
- runTimeCommand -default true
- -annotation ("Graph Editor Cut")
- -category ("Graph Editor")
- -command ("performCutKeyArgList 1 {\"" + $performBase + "\", \"" + $selectionConnection + "\", \"1\"}")
- GraphCut;
-
- runTimeCommand -default true
- -annotation ("Graph Editor Cut Options")
- -category ("Graph Editor")
- -command ("performCutKeyArgList 1 {\"" + ($performBase + 1) + "\", \"" + $selectionConnection + "\", \"1\"}")
- GraphCutOptions;
-
- runTimeCommand -default true
- -annotation ("Graph Editor Copy")
- -category ("Graph Editor")
- -command ("performCopyKeyArgList 1 {\"" + $performBase + "\", \"" + $selectionConnection + "\", \"1\"}")
- GraphCopy;
-
- runTimeCommand -default true
- -annotation ("Graph Editor Copy Options")
- -category ("Graph Editor")
- -command ("performCopyKeyArgList 1 {\"" + ($performBase + 1) + "\", \"" + $selectionConnection + "\", \"1\"}")
- GraphCopyOptions;
-
- runTimeCommand -default true
- -annotation ("Graph Editor Paste")
- -category ("Graph Editor")
- -command ("performPasteKeyArgList 1 {\"" + $performBase + "\", \"" + $selectionConnection + "\", \"1\"}")
- GraphPaste;
-
- runTimeCommand -default true
- -annotation ("Graph Editor Paste Options")
- -category ("Graph Editor")
- -command ("performPasteKeyArgList 1 {\"" + ($performBase + 1) + "\", \"" + $selectionConnection + "\", \"1\"}")
- GraphPasteOptions;
-
- runTimeCommand -default true
- -annotation ("Graph Editor Delete")
- -category ("Graph Editor")
- -command ("performClearKeyArgList 1 {\"" + $performBase + "\", \"" + $selectionConnection + "\", \"0\", \"1\"}")
- GraphDelete;
-
- runTimeCommand -default true
- -annotation ("Graph Editor Delete Options")
- -category ("Graph Editor")
- -command ("performClearKeyArgList 1 {\"" + ($performBase + 1) + "\", \"" + $selectionConnection + "\", \"0\", \"1\"}")
- GraphDeleteOptions;
-
- runTimeCommand -default true
- -annotation ("GraphSnap: Snap keys to integer times")
- -category ("Graph Editor")
- -command ("performSnapKeyArgList 1 { \"" + $performBase + "\", \"" + $selectionConnection + "\", \"1\" }" )
- GraphSnap;
-
- runTimeCommand -default true
- -annotation ("Graph Editor Snap Options")
- -category ("Graph Editor")
- -command ("performSnapKeyArgList 1 { \"" + ($performBase + 1) + "\", \"" + $selectionConnection + "\", \"1\" }")
- GraphSnapOptions;
-
- // Graph Editor View Menu
- //
- runTimeCommand -default true
- -annotation "Toggle Show Buffer Curves"
- -category ("Graph Editor")
- -command ("animCurveEditor -edit -showBufferCurves tgl " + $graphEd + ";")
- ToggleShowBufferCurves;
-
- runTimeCommand -default true
- -annotation ("Toggle Auto Frame")
- -category ("Graph Editor")
- -command ( "optionVar -intValue graphEditorAutoFit (!`optionVar -query graphEditorAutoFit`); animCurveEditor -edit -autoFit tgl " + $graphEd + ";" )
- ToggleAutoFrame;
-
- runTimeCommand -default true
- -annotation ("Toggle Show Results")
- -category ("Graph Editor")
- -command ("animCurveEditor -edit -showResults tgl " + $graphEd + ";")
- ToggleShowResults;
-
- runTimeCommand -default true
- -annotation ("Show Results Options")
- -category ("Graph Editor")
- -command ("performShowResults 1 " + $graphEd)
- ShowResultsOptions;
-
-
- // Graph Editor Keys Menu
- //
-
- runTimeCommand -default true
- -annotation "Break Tangents"
- -category ("Graph Editor")
- -command ("doKeyTangent \"-lock off\" " + $selectionConnection + " noOptions")
- BreakTangents;
-
- runTimeCommand -default true
- -annotation "Unify Tangents"
- -category ("Graph Editor")
- -command ("doKeyTangent \"-lock on\" " + $selectionConnection + " noOptions")
- UnifyTangents;
-
- runTimeCommand -default true
- -annotation "Lock Tangent Weight"
- -category ("Graph Editor")
- -command ("doKeyTangent \"-weightLock on\" " + $selectionConnection + " noOptions")
- LockTangentWeight;
-
- runTimeCommand -default true
- -annotation "Free Tangent Weight"
- -category ("Graph Editor")
- -command ("doKeyTangent \"-weightLock off\" " + $selectionConnection + " noOptions")
- FreeTangentWeight;
-
- runTimeCommand -default true
- -annotation "ConvertToKey: Convert breakdown to key"
- -category ("Graph Editor")
- -command ("doKeyEdit \"-breakdown false\" " + $selectionConnection + " noOptions")
- ConvertToKey;
-
- runTimeCommand -default true
- -annotation "ConvertToBreakdown: Convert key to breakdown"
- -category ("Graph Editor")
- -command ("doKeyEdit \"-breakdown true\" " + $selectionConnection + " noOptions")
- ConvertToBreakdown;
-
- runTimeCommand -default true
- -annotation "AddInbetween: Add an inbetween at the current time."
- -category ("Graph Editor")
- -command ("doKeyEdit \"\" " + $graphEd + " \"bufferCurve addInbetween\"")
- AddInbetween;
-
- runTimeCommand -default true
- -annotation "RemoveInbetween: Remove inbetween at the current time"
- -category ("Graph Editor")
- -command ("doKeyEdit \"\" " + $graphEd + " \"bufferCurve removeInbetween\"")
- RemoveInbetween;
-
-
- // Graph Editor Curves Menu:
- //
-
- runTimeCommand -default true
- -annotation "Pre Infinity Cycle"
- -category ("Graph Editor")
- -command ("doSetInfinity \"-pri cycle\" " + $selectionConnection + " " + "\"" + $options + "\"")
- PreInfinityCycle;
-
- runTimeCommand -default true
- -annotation "Pre Infinity Cycle with Offset"
- -category ("Graph Editor")
- -command ("doSetInfinity \"-pri cycleRelative\" " + $selectionConnection + " " + "\"" + $options + "\"")
- PreInfinityCycleOffset;
-
- runTimeCommand -default true
- -annotation "Pre Infinity Oscillate"
- -category ("Graph Editor")
- -command ("doSetInfinity \"-pri oscillate\" " + $selectionConnection + " " + "\"" + $options + "\"")
- PreInfinityOscillate;
-
- runTimeCommand -default true
- -annotation "Pre Infinity Linear"
- -category ("Graph Editor")
- -command ("doSetInfinity \"-pri linear\" " + $selectionConnection + " " + "\"" + $options + "\"")
- PreInfinityLinear;
-
- runTimeCommand -default true
- -annotation "Pre Infinity Constant"
- -category ("Graph Editor")
- -command ("doSetInfinity \"-pri constant\" " + $selectionConnection + " " + "\"" + $options + "\"")
- PreInfinityConstant;
-
- runTimeCommand -default true
- -annotation "Post Infinity Cycle"
- -category ("Graph Editor")
- -command ("doSetInfinity \"-poi cycle\" " + $selectionConnection + " " + "\"" + $options + "\"")
- PostInfinityCycle;
-
- runTimeCommand -default true
- -annotation "Post Infinity Cycle with Offset"
- -category ("Graph Editor")
- -command ("doSetInfinity \"-poi cycleRelative\" " + $selectionConnection + " " + "\"" + $options + "\"")
- PostInfinityCycleOffset;
-
- runTimeCommand -default true
- -annotation "Post Infinity Oscillate"
- -category ("Graph Editor")
- -command ("doSetInfinity \"-poi oscillate\" " + $selectionConnection + " " + "\"" + $options + "\"")
- PostInfinityOscillate;
-
- runTimeCommand -default true
- -annotation "Post Infinity Linear"
- -category ("Graph Editor")
- -command ("doSetInfinity \"-poi linear\" " + $selectionConnection + " " + "\"" + $options + "\"")
- PostInfinityLinear;
-
- runTimeCommand -default true
- -annotation "Post Infinity Constant"
- -category ("Graph Editor")
- -command ("doSetInfinity \"-poi constant\" " + $selectionConnection + " " + "\"" + $options + "\"")
- PostInfinityConstant;
-
- runTimeCommand -default true
- -annotation "Curve Smoothness Coarse"
- -category ("Graph Editor")
- -command ("animCurveEditor -edit -smoothness coarse " + $graphEd)
- CurveSmoothnessCoarse;
-
- runTimeCommand -default true
- -annotation "Curve Smoothness Rough"
- -category ("Graph Editor")
- -command ("animCurveEditor -edit -smoothness rough " + $graphEd)
- CurveSmoothnessRough;
-
- runTimeCommand -default true
- -annotation "Curve Smoothness Medium"
- -category ("Graph Editor")
- -command ("animCurveEditor -edit -smoothness medium " + $graphEd)
- CurveSmoothnessMedium;
-
- runTimeCommand -default true
- -annotation "Curve Smoothness Fine"
- -category ("Graph Editor")
- -command ("animCurveEditor -edit -smoothness fine " + $graphEd)
- CurveSmoothnessFine;
-
- runTimeCommand -default true
- -annotation "Bake Channel"
- -category ("Graph Editor")
- -command ("performBakeResults " + $performBase + " " + $selectionConnection)
- BakeChannel;
-
- runTimeCommand -default true
- -annotation "Bake Channel Options"
- -category ("Graph Editor")
- -command ("performBakeResults " + ($performBase + 1) + " " + $selectionConnection)
- BakeChannelOptions;
-
- runTimeCommand -default true
- -annotation "Simplify Curve"
- -category ("Graph Editor")
- -command ("performSimplify " + $performBase + " " + $selectionConnection)
- SimplifyCurve;
-
- runTimeCommand -default true
- -annotation "Simplify Curve Options"
- -category ("Graph Editor")
- -command ("performSimplify " + ($performBase + 1) + " " + $selectionConnection)
- SimplifyCurveOptions;
-
- runTimeCommand -default true
- -annotation "Resample Curve"
- -category ("Graph Editor")
- -command ("performResample " + $performBase + " " + $selectionConnection)
- ResampleCurve;
-
- runTimeCommand -default true
- -annotation "Resample Curve Options"
- -category ("Graph Editor")
- -command ("performResample " + ($performBase + 1) + " " + $selectionConnection)
- ResampleCurveOptions;
-
- runTimeCommand -default true
- -annotation "Buffer Curve Snapshot"
- -category ("Graph Editor")
- -command "bufferCurve -animation \"keys\" -overwrite true"
- BufferCurveSnapshot;
-
- runTimeCommand -default true
- -annotation "Swap Buffer Curve"
- -category ("Graph Editor")
- -command "bufferCurve -animation \"keys\" -swap"
- SwapBufferCurve;
-
-
- runTimeCommand -default true
- -annotation "Non-weighted Tangents"
- -category ("Graph Editor")
- -command ("doKeyTangent \"-edit -weightedTangents false\" " + $selectionConnection + " " + "\"" + $options + "\"")
- NonWeightedTangents;
-
- runTimeCommand -default true
- -annotation "Weighted Tangents"
- -category ("Graph Editor")
- -command ("doKeyTangent \"-edit -weightedTangents true\" " + $selectionConnection + " " + "\"" + $options + "\"")
- WeightedTangents;
-
- // Graph Editor Tangents Menu:
- //
-
- runTimeCommand -default true
- -annotation "Tangents Spline"
- -category ("Graph Editor")
- -command ("doKeyTangent \"-e -itt spline -ott spline\" " + $selectionConnection + " " + "\"" + $options + "\"")
- TangentsSpline;
-
- runTimeCommand -default true
- -annotation "Tangents Linear"
- -category ("Graph Editor")
- -command ("doKeyTangent \"-e -itt linear -ott linear\" " + $selectionConnection + " " + "\"" + $options + "\"")
- TangentsLinear;
-
- runTimeCommand -default true
- -annotation "Tangents Clamped"
- -category ("Graph Editor")
- -command ("doKeyTangent \"-e -itt clamped -ott clamped\" " + $selectionConnection + " " + "\"" + $options + "\"")
- TangentsClamped;
-
- runTimeCommand -default true
- -annotation "Tangents Stepped"
- -category ("Graph Editor")
- -command ("doKeyTangent \"-e -ott step\" " + $selectionConnection + " " + "\"" + $options + "\"")
- TangentsStepped;
- runTimeCommand -default true
-
- -annotation "Tangents Flat"
- -category ("Graph Editor")
- -command ("doKeyTangent \"-e -itt flat -ott flat\" " + $selectionConnection + " " + "\"" + $options + "\"")
- TangentsFlat;
-
- runTimeCommand -default true
- -annotation "Tangents Fixed"
- -category ("Graph Editor")
- -command ("doKeyTangent \"-e -itt fixed -ott fixed\" " + $selectionConnection + " " + "\"" + $options + "\"")
- TangentsFixed;
-
- runTimeCommand -default true
- -annotation "InTangent Spline"
- -category ("Graph Editor")
- -command ("doKeyTangent \"-e -itt spline\" " + $selectionConnection + " " + "\"" + $options + "\"")
- InTangentSpline;
-
- runTimeCommand -default true
- -annotation "In Tangent Linear"
- -category ("Graph Editor")
- -command ("doKeyTangent \"-e -itt linear\" " + $selectionConnection + " " + "\"" + $options + "\"")
- InTangentLinear;
-
- runTimeCommand -default true
- -annotation "In Tangent Clamped"
- -category ("Graph Editor")
- -command ("doKeyTangent \"-e -itt clamped\" " + $selectionConnection + " " + "\"" + $options + "\"")
- InTangentClamped;
-
- runTimeCommand -default true
- -annotation "In Tangent Flat"
- -category ("Graph Editor")
- -command ("doKeyTangent \"-e -itt flat\" " + $selectionConnection + " " + "\"" + $options + "\"")
- InTangentFlat;
-
- runTimeCommand -default true
- -annotation "In Tangent Fixed"
- -category ("Graph Editor")
- -command ("doKeyTangent \"-e -itt fixed\" " + $selectionConnection + " " + "\"" + $options + "\"")
- InTangentFixed;
-
- runTimeCommand -default true
- -annotation "Out Tangent Spline"
- -category ("Graph Editor")
- -command ("doKeyTangent \"-e -ott spline\" " + $selectionConnection + " " + "\"" + $options + "\"")
- OutTangentSpline;
-
- runTimeCommand -default true
- -annotation "Out Tangent Linear"
- -category ("Graph Editor")
- -command ("doKeyTangent \"-e -ott linear\" " + $selectionConnection + " " + "\"" + $options + "\"")
- OutTangentLinear;
-
- runTimeCommand -default true
- -annotation "Out Tangent Clamped"
- -category ("Graph Editor")
- -command ("doKeyTangent \"-e -ott clamped\" " + $selectionConnection + " " + "\"" + $options + "\"")
- OutTangentClamped;
-
- runTimeCommand -default true
- -annotation "Out Tangent Flat"
- -category ("Graph Editor")
- -command ("doKeyTangent \"-e -ott flat\" " + $selectionConnection + " " + "\"" + $options + "\"")
- OutTangentFlat;
-
- runTimeCommand -default true
- -annotation "Out Tangent Fixed"
- -category ("Graph Editor")
- -command ("doKeyTangent \"-e -ott fixed\" " + $selectionConnection + " " + "\"" + $options + "\"")
- OutTangentFixed;
-
-
- //
- // Deform menu.
- //
- // ----------------------------------------------------------------------
-
- runTimeCommand -default true
- -annotation ("Edit Membership Tool")
- -category ("Deform")
- -command ("setToolTo setEditContext")
- EditMembershipTool;
-
- runTimeCommand -default true
- -annotation ("Prune Cluster")
- -category ("Deform")
- -command ("cluster -e -pr")
- PruneCluster;
-
- runTimeCommand -default true
- -annotation ("Prune Lattice")
- -category ("Deform")
- -command ("lattice -e -pr")
- PruneLattice;
-
- runTimeCommand -default true
- -annotation ("Prune Sculpt")
- -category ("Deform")
- -command ("sculpt -e -pr")
- PruneSculpt;
-
- runTimeCommand -default true
- -annotation ("Prune Wire")
- -category ("Deform")
- -command ("wire -e -pr")
- PruneWire;
-
- runTimeCommand -default true
- -annotation ("Blend Shape: Select two or more objects. "
- + "Select the base shape last")
- -category ("Deform")
- -command ("performBlendShape 0")
- CreateBlendShape;
-
- runTimeCommand -default true
- -annotation ("Blend Shape Options")
- -category ("Deform")
- -command ("performBlendShape 1")
- CreateBlendShapeOptions;
-
- runTimeCommand -default true
- -annotation ("Add Blend Shape")
- -category ("Deform")
- -command ("performBlendShapeAdd 0")
- AddBlendShape;
-
- runTimeCommand -default true
- -annotation ("Add Blend Shape Options")
- -category ("Deform")
- -command ("performBlendShapeAdd 1")
- AddBlendShapeOptions;
-
- runTimeCommand -default true
- -annotation ("Remove Blend Shape")
- -category ("Deform")
- -command ("performBlendShapeRemove 0")
- RemoveBlendShape;
-
- runTimeCommand -default true
- -annotation ("Remove Blend Shape Options")
- -category ("Deform")
- -command ("performBlendShapeRemove 1")
- RemoveBlendShapeOptions;
-
- runTimeCommand -default true
- -annotation ("Swap Blend Shape")
- -category ("Deform")
- -command ("performBlendShapeSwap 0")
- SwapBlendShape;
-
- runTimeCommand -default true
- -annotation ("Swap Blend Shape Options")
- -category ("Deform")
- -command ("performBlendShapeSwap 1")
- SwapBlendShapeOptions;
-
- runTimeCommand -default true
- -annotation ("Lattice: Create a lattice for the selected object(s)")
- -category ("Deform")
- -command ("performLattice false")
- CreateLattice;
-
- runTimeCommand -default true
- -annotation ("Lattice Options")
- -category ("Deform")
- -command ("performLattice true")
- CreateLatticeOptions;
-
- runTimeCommand -default true
- -annotation ("Reset Lattice")
- -category ("Deform")
- -command ("lattice -edit -latticeReset")
- ResetLattice;
-
- runTimeCommand -default true
- -annotation ("Remove Lattice Tweaks")
- -category ("Deform")
- -command ("lattice -edit -removeTweaks")
- RemoveLatticeTweaks;
-
- runTimeCommand -default true
- -annotation ("Cluster")
- -category ("Deform")
- -command ("performCluster false")
- CreateCluster;
-
- runTimeCommand -default true
- -annotation ("Cluster Options")
- -category ("Deform")
- -command ("performCluster true")
- CreateClusterOptions;
-
- runTimeCommand -default true
- -annotation ("Nonlinear Bend: Select items to deform")
- -category ("Deform")
- -command ("performBend 0")
- Bend;
-
- runTimeCommand -default true
- -annotation ("Nonlinear Bend Options")
- -category ("Deform")
- -command ("performBend 1")
- BendOptions;
-
- runTimeCommand -default true
- -annotation ("Nonlinear Flare: Select items to deform")
- -category ("Deform")
- -command ("performFlare 0")
- Flare;
-
- runTimeCommand -default true
- -annotation ("Nonlinear Flare Options")
- -category ("Deform")
- -command ("performFlare 1")
- FlareOptions;
-
- runTimeCommand -default true
- -annotation ("Nonlinear Sine: Select items to deform")
- -category ("Deform")
- -command ("performSine 0")
- Sine;
-
- runTimeCommand -default true
- -annotation ("Nonlinear Sine Options")
- -category ("Deform")
- -command ("performSine 1")
- SineOptions;
-
- runTimeCommand -default true
- -annotation ("Nonlinear Squash: Select items to deform")
- -category ("Deform")
- -command ("performSquash 0")
- Squash;
-
- runTimeCommand -default true
- -annotation ("Nonlinear Squash Options")
- -category ("Deform")
- -command ("performSquash 1")
- SquashOptions;
-
- runTimeCommand -default true
- -annotation ("Nonlinear Twist: Select items to deform")
- -category ("Deform")
- -command ("performTwist 0")
- Twist;
-
- runTimeCommand -default true
- -annotation ("Nonlinear Twist Options")
- -category ("Deform")
- -command ("performTwist 1")
- TwistOptions;
-
- runTimeCommand -default true
- -annotation ("Nonlinear Wave: Select items to deform")
- -category ("Deform")
- -command ("performWave 0")
- Wave;
-
- runTimeCommand -default true
- -annotation ("Nonlinear Wave Options")
- -category ("Deform")
- -command ("performWave 1")
- WaveOptions;
-
- runTimeCommand -default true
- -annotation ("Sculpt Deformer: Select object(s)")
- -category ("Deform")
- -command ("performSculpt false")
- CreateSculptDeformer;
-
- runTimeCommand -default true
- -annotation ("Sculpt Deformer Options")
- -category ("Deform")
- -command ("performSculpt true")
- CreateSculptDeformerOptions;
-
- runTimeCommand -default true
- -annotation ("Jiggle Deformer")
- -category ("Deform")
- -command ("performJiggle false")
- CreateJiggleDeformer;
-
- runTimeCommand -default true
- -annotation ("Jiggle Deformer Options")
- -category ("Deform")
- -command ("performJiggle true")
- CreateJiggleOptions;
-
- runTimeCommand -default true
- -annotation ("Wire Tool: Select object(s), select curve(s)")
- -category ("Deform")
- -command ("setToolTo wireCtx")
- WireTool;
-
- runTimeCommand -default true
- -annotation ("Wire Tool Options")
- -category ("Deform")
- -command ("setToolTo wireCtx; toolPropertyWindow")
- WireToolOptions;
-
- runTimeCommand -default true
- -annotation ("Add Wire")
- -category ("Deform")
- -command ("performWireAdd 0")
- AddWire;
-
- runTimeCommand -default true
- -annotation ("Add Wire Options")
- -category ("Deform")
- -command ("performWireAdd 1")
- AddWireOptions;
-
- runTimeCommand -default true
- -annotation ("Remove Wire")
- -category ("Deform")
- -command ("performWireRemove 0")
- RemoveWire;
-
- runTimeCommand -default true
- -annotation ("Remove Wire Options")
- -category ("Deform")
- -command ("performWireRemove 1")
- RemoveWireOptions;
-
- runTimeCommand -default true
- -annotation ("Add Holder")
- -category ("Deform")
- -command ("performWireAddHolder 0")
- AddHolder;
-
- runTimeCommand -default true
- -annotation ("Add Holder Options")
- -category ("Deform")
- -command ("performWireAddHolder 1")
- AddHolderOptions;
-
- runTimeCommand -default true
- -annotation ("Reset Wire")
- -category ("Deform")
- -command ("performWireReset 0")
- ResetWire;
-
- runTimeCommand -default true
- -annotation ("Reset Wire Options")
- -category ("Deform")
- -command ("performWireReset 1")
- ResetWireOptions;
-
- runTimeCommand -default true
- -annotation ("Parent Base Wire")
- -category ("Deform")
- -command ("performWireParentBase 0")
- ParentBaseWire;
-
- runTimeCommand -default true
- -annotation ("Show Base Wire")
- -category ("Deform")
- -command ("doWireEdit 6 0 \"\"")
- ShowBaseWire;
-
- runTimeCommand -default true
- -annotation ("Parent Base Wire Options")
- -category ("Deform")
- -command ("performWireParentBase 1")
- ParentBaseWireOptions;
-
- runTimeCommand -default true
- -annotation ("Wire Dropoff Locator")
- -category ("Deform")
- -command ("performDropoffLocator 0")
- WireDropoffLocator;
-
- runTimeCommand -default true
- -annotation ("Wire Dropoff Locator Options")
- -category ("Deform")
- -command ("performDropoffLocator 1")
- WireDropoffLocatorOptions;
-
- runTimeCommand -default true
- -annotation ("Wrinkle Tool")
- -category ("Deform")
- -command ("setToolTo wrinkleCtx")
- WrinkleTool;
-
- runTimeCommand -default true
- -annotation ("Wrinkle Tool Options")
- -category ("Deform")
- -command ("setToolTo wrinkleCtx; toolPropertyWindow")
- WrinkleToolOptions;
-
- runTimeCommand -default true
- -annotation ("Wrap: Select surfaces and an influence object")
- -category ("Deform")
- -command ("performCreateWrap false")
- CreateWrap;
-
- runTimeCommand -default true
- -annotation ("Wrap Options")
- -category ("Deform")
- -command ("performCreateWrap true")
- CreateWrapOptions;
-
- runTimeCommand -default true
- -annotation ("Add Wrap Influence")
- -category ("Deform")
- -command ("performWrap 2")
- AddWrapInfluence;
-
- runTimeCommand -default true
- -annotation ("Remove Wrap Influence")
- -category ("Deform")
- -command ("performWrap 3")
- RemoveWrapInfluence;
-
- runTimeCommand -default true
- -annotation ("Display Intermediate Objects")
- -category ("Deform")
- -command ("displayInterObjects 0")
- DisplayIntermediateObjects;
-
- runTimeCommand -default true
- -annotation ("Hide Intermediate Objects")
- -category ("Deform")
- -command ("displayInterObjects 1")
- HideIntermediateObjects;
-
- runTimeCommand -default true
- -annotation ("Paint Set Membership Tool")
- -category ("Deform")
- -command ("setEditPaintToolScript 4")
- PaintSetMembershipTool;
-
- runTimeCommand -default true
- -annotation ("Paint Set Membership Tool Options")
- -category ("Deform")
- -command ("setEditPaintToolScript 3")
- PaintSetMembershipToolOptions;
-
- runTimeCommand -default true
- -annotation ("Point On Curve")
- -category ("Deform")
- -command ("performPointCurveConstraint 0")
- PointOnCurve;
-
- runTimeCommand -default true
- -annotation ("Point On Curve Options")
- -category ("Deform")
- -command ("performPointCurveConstraint(1)")
- PointOnCurveOptions;
-
- //
- // Skeleton menu.
- //
- // ----------------------------------------------------------------------
-
- runTimeCommand -default true
- -annotation ("Joint Tool: Click to place joint. Click on existing "
- + "joint to add to skeleton. Click + drag to position joint.")
- -category ("Skeleton")
- -command ("setToolTo jointContext")
- JointTool;
-
- runTimeCommand -default true
- -annotation ("Joint Tool Options")
- -category ("Skeleton")
- -command ("setToolTo jointContext; toolPropertyWindow")
- JointToolOptions;
-
- runTimeCommand -default true
- -annotation ("IK Handle Tool: Create IK handle on joint chain")
- -category ("Skeleton")
- -command ("setToolTo ikHandleContext")
- IKHandleTool;
-
- runTimeCommand -default true
- -annotation ("IK Handle Tool Options")
- -category ("Skeleton")
- -command ("setToolTo ikHandleContext; toolPropertyWindow")
- IKHandleToolOptions;
-
- runTimeCommand -default true
- -annotation ("IK Spline Handle Tool: Create IK spline handle on joint chain")
- -category ("Skeleton")
- -command ("setToolTo ikSplineHandleContext")
- IKSplineHandleTool;
-
- runTimeCommand -default true
- -annotation ("IK Spline Handle Tool Options")
- -category ("Skeleton")
- -command ("setToolTo ikSplineHandleContext; toolPropertyWindow")
- IKSplineHandleToolOptions;
-
- runTimeCommand -default true
- -annotation ("Insert Joint Tool")
- -category ("Skeleton")
- -command ("setToolTo insertJointContext")
- InsertJointTool;
-
- runTimeCommand -default true
- -annotation ("Reroot Skeleton: Select a joint")
- -category ("Skeleton")
- -command ("reroot")
- RerootSkeleton;
-
- runTimeCommand -default true
- -annotation ("Remove Joint: Select a joint")
- -category ("Skeleton")
- -command ("removeJoint")
- RemoveJoint;
-
- runTimeCommand -default true
- -annotation ("Disconnect Joint: Select a joint")
- -category ("Skeleton")
- -command ("disconnectJoint -deleteHandleMode")
- DisconnectJoint;
-
- runTimeCommand -default true
- -annotation ("Connect Joint: Select two joints")
- -category ("Skeleton")
- -command ("performConnectJoint 0")
- ConnectJoint;
-
- runTimeCommand -default true
- -annotation ("Connect Joint Options")
- -category ("Skeleton")
- -command ("performConnectJoint 1")
- ConnectJointOptions;
-
- runTimeCommand -default true
- -annotation ("Mirror Joint: Select a joint")
- -category ("Skeleton")
- -command ("performMirrorJoint 0")
- MirrorJoint;
-
- runTimeCommand -default true
- -annotation ("Mirror Joint Options")
- -category ("Skeleton")
- -command ("performMirrorJoint 1")
- MirrorJointOptions;
-
- runTimeCommand -default true
- -annotation ("Orient Joint: Select a joint")
- -category ("Skeleton")
- -command ("performJointOrient 0")
- OrientJoint;
-
- runTimeCommand -default true
- -annotation ("Orient Joint Options")
- -category ("Skeleton")
- -command ("performJointOrient 1")
- OrientJointOptions;
-
- runTimeCommand -default true
- -annotation ("Set Preferred Angle")
- -category ("Skeleton")
- -command ("performSetPrefAngle 0")
- SetPreferredAngle;
-
- runTimeCommand -default true
- -annotation ("Set Preferred Angle Options")
- -category ("Skeleton")
- -command ("performSetPrefAngle 1")
- SetPreferredAngleOptions;
-
- runTimeCommand -default true
- -annotation ("Assume Preferred Angle")
- -category ("Skeleton")
- -command ("performAssumePrefAngle 0")
- AssumePreferredAngle;
-
- runTimeCommand -default true
- -annotation ("Assume Preferred Angle Options")
- -category ("Skeleton")
- -command ("performAssumePrefAngle 1")
- AssumePreferredAngleOptions;
-
- runTimeCommand -default true
- -annotation ("Toggle IK Solvers")
- -category ("Skeleton")
- -command ("ikSystem -e -sol (!`ikSystem -q -sol`)")
- ToggleIKSolvers;
-
- runTimeCommand -default true
- -annotation ("Toggle IK Handle Snap")
- -category ("Skeleton")
- -command ("ikSystem -e -sn (!`ikSystem -q -sn`)")
- ToggleIKHandleSnap;
-
- runTimeCommand -default true
- -annotation ("Toggle IK Handle Allow Rotation")
- -category ("Skeleton")
- -command ("ikSystem -e -allowRotation (!`ikSystem -q -allowRotation`); menuItem -e -enable (!`ikSystem -q -allowRotation`) globalSnapEnableItem")
- ToggleIKAllowRotation;
-
- runTimeCommand -default true
- -annotation ("Enable Selected IK Handles")
- -category ("Skeleton")
- -command ("ikHandle -e -eh")
- EnableSelectedIKHandles;
-
- runTimeCommand -default true
- -annotation ("Disable Selected IK Handles")
- -category ("Skeleton")
- -command ("ikHandle -e -dh")
- DisableSelectedIKHandles;
-
- //
- // Skin menu.
- //
- // ----------------------------------------------------------------------
-
- runTimeCommand -default true
- -annotation ("Smooth Bind Skin: Select surface(s) and a joint")
- -category ("Skin")
- -command ("performSkinCluster false")
- SmoothBindSkin;
-
- runTimeCommand -default true
- -annotation ("Smooth Bind Skin Options")
- -category ("Skin")
- -command ("performSkinCluster true")
- SmoothBindSkinOptions;
-
- runTimeCommand -default true
- -annotation ("Rigid Bind Skin")
- -category ("Skin")
- -command ("performBindSkin false")
- RigidBindSkin;
-
- runTimeCommand -default true
- -annotation ("Rigid Bind Skin Options")
- -category ("Skin")
- -command ("performBindSkin true")
- RigidBindSkinOptions;
-
- runTimeCommand -default true
- -annotation ("Detach Skin")
- -category ("Skin")
- -command ("performDetachSkin false")
- DetachSkin;
-
- runTimeCommand -default true
- -annotation ("Detach Skin Options")
- -category ("Skin")
- -command ("performDetachSkin true")
- DetachSkinOptions;
-
- runTimeCommand -default true
- -annotation ("Go to Bind Pose")
- -category ("Skin")
- -command ("evalEcho(\"gotoBindPose\")")
- GoToBindPose;
-
- runTimeCommand -default true
- -annotation ("Add Influence")
- -category ("Skin")
- -command ("performAddInfluence false")
- AddInfluence;
-
- runTimeCommand -default true
- -annotation ("Add Influence Options")
- -category ("Skin")
- -command ("performAddInfluence true")
- AddInfluenceOptions;
-
- runTimeCommand -default true
- -annotation ("Remove Influence")
- -category ("Skin")
- -command ("skinClusterInfluence(2,\"\")")
- RemoveInfluence;
-
- runTimeCommand -default true
- -annotation ("Set Max Influences: Display dialog to set max influences")
- -category ("Skin")
- -command ("performMaxInfluences true")
- SetMaxInfluences;
-
- runTimeCommand -default true
- -annotation ("Reset Weights to Default")
- -category ("Skin")
- -command ("performResetToDefault")
- ResetWeightsToDefault;
-
- runTimeCommand -default true
- -annotation ("Mirror Skin Weights: Select either a single skin "
- + "or the source and the destination skin")
- -category ("Skin")
- -command ("performMirrorSkinWeights false")
- MirrorSkinWeights;
-
- runTimeCommand -default true
- -annotation ("Mirror Skin Weights Options")
- -category ("Skin")
- -command ("performMirrorSkinWeights true")
- MirrorSkinWeightsOptions;
-
- runTimeCommand -default true
- -annotation ("Copy Skin Weights: Select the source surface and "
- + "the destination surface")
- -category ("Skin")
- -command ("performCopySkinWeights false")
- CopySkinWeights;
-
- runTimeCommand -default true
- -annotation ("Prune Small Weights")
- -category ("Skin")
- -command ("performPruneWeights false")
- PruneSmallWeights;
-
- runTimeCommand -default true
- -annotation ("Prune Small Weights Options")
- -category ("Skin")
- -command ("performPruneWeights true")
- PruneSmallWeightsOptions;
-
- runTimeCommand -default true
- -annotation ("Export Skin Weight Maps: Select smooth bound skins")
- -category ("Skin")
- -command ("performExportSkinMap 0")
- ExportSkinWeightMaps;
-
- runTimeCommand -default true
- -annotation ("Export Skin Weight Maps Options")
- -category ("Skin")
- -command ("performExportSkinMap 1")
- ExportSkinWeightMapsOptions;
-
- runTimeCommand -default true
- -annotation ("Import Skin Weight Maps: Select smooth bound skins")
- -category ("Skin")
- -command ("importSkinMap 1 {}")
- ImportSkinWeightMaps;
-
- runTimeCommand -default true
- -annotation ("Paint Skin Weights Tool: Paint weights on smooth bound skins")
- -category ("Skin")
- -command ("artAttrSkinToolScript 4 ")
- ArtPaintSkinWeightsTool;
-
- runTimeCommand -default true
- -annotation ("Paint Skin Weights Tool Options")
- -category ("Skin")
- -command ("artAttrSkinToolScript 3 ")
- ArtPaintSkinWeightsToolOptions;
-
- runTimeCommand -default true
- -annotation ("Create Flexor: Open CreateFlexor Window")
- -category ("Window")
- -command ("createFlexorWin")
- CreateFlexorWindow;
-
- runTimeCommand -default true
- -annotation ("Copy Flexor")
- -category ("Skin")
- -command ("copyFlexor")
- CopyFlexor;
-
- runTimeCommand -default true
- -annotation ("Reassign Bone Lattice Joint")
- -category ("Skin")
- -command ("setNewBoneFlexorJoint")
- ReassignBoneLatticeJoint;
-
- runTimeCommand -default true
- -annotation ("Detach Skeleton")
- -category ("Skin")
- -command ("bindSkin -enable 0")
- DetachSkeleton;
-
- runTimeCommand -default true
- -annotation ("Detach Skeleton Joint")
- -category ("Skin")
- -command ("bindSkin -enable 0 -tsb")
- DetachSkeletonJoints;
-
- runTimeCommand -default true
- -annotation ("Reattach Skeleton")
- -category ("Skin")
- -command ("bindSkin -enable 1")
- ReattachSkeleton;
-
- runTimeCommand -default true
- -annotation ("Reattach Skeleton Joint")
- -category ("Skin")
- -command ("bindSkin -enable 1 -tsb")
- ReattachSkeletonJoints;
-
- //
- // Constrain menu.
- //
- // ----------------------------------------------------------------------
-
- runTimeCommand -default true
- -annotation ("Point Constraint: Select one or more targets followed "
- + "by the object to constrain")
- -category ("Constrain")
- -command ("performPointConstraint 0")
- PointConstraint;
-
- runTimeCommand -default true
- -annotation ("Point Constraint Options")
- -category ("Constrain")
- -command ("performPointConstraint 1")
- PointConstraintOptions;
-
- runTimeCommand -default true
- -annotation ("Aim Constraint: Select one or more targets followed "
- + "by the object to constrain")
- -category ("Constrain")
- -command ("performAimConstraint 0")
- AimConstraint;
-
- runTimeCommand -default true
- -annotation ("Aim Constraint Options")
- -category ("Constrain")
- -command ("performAimConstraint 1")
- AimConstraintOptions;
-
- runTimeCommand -default true
- -annotation ("Orient Constraint: Select one or more targets followed "
- + "by the object to constrain")
- -category ("Constrain")
- -command ("performOrientConstraint 0")
- OrientConstraint;
-
- runTimeCommand -default true
- -annotation ("Orient Constraint Options")
- -category ("Constrain")
- -command ("performOrientConstraint 1")
- OrientConstraintOptions;
-
- runTimeCommand -default true
- -annotation ("Scale Constraint")
- -category ("Constrain")
- -command ("performScaleConstraint 0")
- ScaleConstraint;
-
- runTimeCommand -default true
- -annotation ("Scale Constraint Options")
- -category ("Constrain")
- -command ("performScaleConstraint 1")
- ScaleConstraintOptions;
-
- runTimeCommand -default true
- -annotation ("Parent Constraint: Select one or more targets followed "
- + "by the object to constrain")
- -category ("Constrain")
- -command ("performParentConstraint 0")
- ParentConstraint;
-
- runTimeCommand -default true
- -annotation ("Parent Constraint Options")
- -category ("Constrain")
- -command ("performParentConstraint 1")
- ParentConstraintOptions;
-
- runTimeCommand -default true
- -annotation ("Geometry Constraint")
- -category ("Constrain")
- -command ("performGeometryConstraint 0")
- GeometryConstraint;
-
- runTimeCommand -default true
- -annotation ("Geometry Constraint Options")
- -category ("Constrain")
- -command ("performGeometryConstraint 1")
- GeometryConstraintOptions;
-
- runTimeCommand -default true
- -annotation ("Normal Constraint")
- -category ("Constrain")
- -command ("performNormalConstraint 0")
- NormalConstraint;
-
- runTimeCommand -default true
- -annotation ("Normal Constraint Options")
- -category ("Constrain")
- -command ("performNormalConstraint 1")
- NormalConstraintOptions;
-
- runTimeCommand -default true
- -annotation ("Tanget Constraint")
- -category ("Constrain")
- -command ("performTangentConstraint 0")
- TangetConstraint;
-
- runTimeCommand -default true
- -annotation ("Tanget Constraint Options")
- -category ("Constrain")
- -command ("performTangentConstraint 1")
- TangetConstraintOptions;
-
- runTimeCommand -default true
- -annotation ("Pole Vector Constraint")
- -category ("Constrain")
- -command ("performPoleVectorConstraint 0")
- PoleVectorConstraint;
-
- runTimeCommand -default true
- -annotation ("Pole Vector Constraint Options")
- -category ("Constrain")
- -command ("performPoleVectorConstraint 1")
- PoleVectorConstraintOptions;
-
- runTimeCommand -default true
- -annotation ("Remove Constraint Target")
- -category ("Constrain")
- -command ("performRemoveConstraintTarget 0")
- RemoveConstraintTarget;
-
- runTimeCommand -default true
- -annotation ("Remove Constraint Target Options")
- -category ("Constrain")
- -command ("performRemoveConstraintTarget 1")
- RemoveConstraintTargetOptions;
-
- runTimeCommand -default true
- -annotation ("Modify Constraint Axis")
- -category ("Constrain")
- -command ("performModifyConstraintAxes 0")
- ModifyConstraintAxis;
-
- runTimeCommand -default true
- -annotation ("Modify Constraint Axis Options")
- -category ("Constrain")
- -command ("performModifyConstraintAxes 1")
- ModifyConstraintAxisOptions;
-
- //
- // Character menu.
- //
- // ----------------------------------------------------------------------
-
- runTimeCommand -default true
- -annotation ("Create a Character")
- -category ("Character")
- -command ("performCreateCharacter 0")
- CreateCharacter;
-
- runTimeCommand -default true
- -annotation ("Create a Character Options")
- -category ("Character")
- -command ("performCreateCharacter 1")
- CreateCharacterOptions;
-
- runTimeCommand -default true
- -annotation ("Edit character attributes")
- -category ("Character")
- -command ("editCurrentCharAttrs()")
- EditCharacterAttributes;
-
- runTimeCommand -default true
- -annotation ("Clear current character list")
- -category ("Character")
- -command ("setCurrentCharacters( {} )")
- ClearCurrentCharacterList;
- }
- animationMenus();
-
- // ======================================================================
- // ======================================================================
- //
- // Dynamics menu set, ie. Particles, Fields, Soft/Rigid Bodies,
- // Effects, and Solvers.
- //
- // ======================================================================
- // ======================================================================
- proc particleMenus() {
- //
- // Particles menu.
- //
- // ----------------------------------------------------------------------
-
- runTimeCommand -default true
- -annotation ("Particle Tool: Create particles on the grid " +
- "or live object")
- -category ("Particles")
- -command ("setToolTo dynParticleContext")
- ParticleTool;
-
- runTimeCommand -default true
- -annotation ("Particle Tool Options")
- -category ("Particles")
- -command ("setToolTo dynParticleContext; toolPropertyWindow")
- ParticleToolOptions;
-
- runTimeCommand -default true
- -annotation ("Emitter: Create an emitter on the grid " +
- "or live object")
- -category ("Particles")
- -command ("performDynamics 1 Emitter 0")
- CreateEmitter;
-
- runTimeCommand -default true
- -annotation ("Create Emitter Options")
- -category ("Particles")
- -command ("performDynamics 1 Emitter 1")
- CreateEmitterOptions;
-
- runTimeCommand -default true
- -annotation ("Add Emitter: Select the object(s) to emit particles")
- -category ("Particles")
- -command ("performDynamics 0 Emitter 0")
- EmitFromObject;
-
- runTimeCommand -default true
- -annotation ("Add Emitter Options")
- -category ("Particles")
- -command ("performDynamics 0 Emitter 1")
- EmitFromObjectOptions;
-
- runTimeCommand -default true
- -annotation ("Use Selected Emitter: Select particle " +
- "object(s), then select emitter to create " +
- "particles for them")
- -category ("Particles")
- -command ("performDynamicsConnect 2")
- UseSelectedEmitter;
-
- runTimeCommand -default true
- -annotation ("Per-Point Emission Rates: Enable per-point " +
- "rates for selected emitter")
- -category ("Particles")
- -command ("addPP -atr rate")
- PerPointEmissionRates;
-
- runTimeCommand -default true
- -annotation ("Make Collide: Select particle object, then " +
- "select one geometry object to collide with")
- -category ("Particles")
- -command ("performDynamics 0 Collision 0")
- MakeCollide;
-
- runTimeCommand -default true
- -annotation ("Make Collide Options")
- -category ("Particles")
- -command ("performDynamics 0 Collision 1")
- MakeCollideOptions;
-
- runTimeCommand -default true
- -annotation ("Particle Collision Events: Display Collision " +
- "Events Editor")
- -category ("Particles")
- -command ("eventEdWin")
- ParticleCollisionEvents;
-
- runTimeCommand -default true
- -annotation ("Goal: Select first the particle and then the " +
- "goal object")
- -category ("Particles")
- -command ("performDynamics 0 Goal 0")
- Goal;
-
- runTimeCommand -default true
- -annotation ("Goal Options")
- -category ("Particles")
- -command ("performDynamics 0 Goal 1")
- GoalOptions;
-
- runTimeCommand -default true
- -annotation ("Particle Instancer: Select first the replacement " +
- "objects and then the particle")
- -category ("Particles")
- -command ("performDynamics 0 ParticleInstancer 0")
- ParticleInstancer;
-
- runTimeCommand -default true
- -annotation ("Particle Instancer Options")
- -category ("Particles")
- -command ("performDynamics 1 ParticleInstancer 1")
- ParticleInstancerOptions;
-
- runTimeCommand -default true
- -annotation ("Connect to Time: Select particle shape")
- -category ("Particles")
- -command ("dynConnectToTime")
- ConnectToTime;
-
- //
- // Fluids menu
- //
- // ----------------------------------------------------------------------
-
- // These commands are not available in Maya Complete, and
- // while their appearance (without being available) in the
- // Hotkey Editor Categories can be viewed as a "teaser" on
- // other platforms, Maya Unlimited isn't even available on
- // the Mac, so therefore we hide them.
- //
- if( !`about -mac` ) {
- runTimeCommand -default true
- -annotation ("3D Fluid Container: Create a 3D fluid container")
- -category ("Fluid Effects")
- -command ("performFluids 1 Create3DFluid 0")
- Create3DContainer;
-
- runTimeCommand -default true
- -annotation ("3D Fluid Container Options")
- -category ("Fluid Effects")
- -command ("performFluids 1 Create3DFluid 3")
- Create3DContainerOptions;
-
- runTimeCommand -default true
- -annotation ("2D Fluid Container: Create a 2D fluid container")
- -category ("Fluid Effects")
- -command ("performFluids 1 Create2DFluid 0")
- Create2DContainer;
-
- runTimeCommand -default true
- -annotation ("2D Fluid Container Options")
- -category ("Fluid Effects")
- -command ("performFluids 1 Create2DFluid 3")
- Create2DContainerOptions;
-
- runTimeCommand -default true
- -annotation ("Create an emitter and a 3D fluid container")
- -category ("Fluid Effects")
- -command ("performFluids 1 3DFluidAndEmitter 0")
- Create3DContainerEmitter;
-
- runTimeCommand -default true
- -annotation ("Create 3D Container with Emitter Options")
- -category ("Fluid Effects")
- -command ("performFluids 1 3DFluidAndEmitter 3")
- Create3DContainerEmitterOptions;
-
- runTimeCommand -default true
- -annotation ("Create an emitter and a 2D fluid container")
- -category ("Fluid Effects")
- -command ("performFluids 1 2DFluidAndEmitter 0")
- Create2DContainerEmitter;
-
- runTimeCommand -default true
- -annotation ("Create 2D Container with Emitter Options")
- -category ("Fluid Effects")
- -command ("performFluids 1 2DFluidAndEmitter 3")
- Create2DContainerEmitterOptions;
-
- runTimeCommand -default true
- -annotation ("Emit Fluid from Object: Select a fluid and the emitting object(s)")
- -category ("Fluid Effects")
- -command ("performFluids 0 FluidEmitFromObject 0")
- EmitFluidFromObject;
-
- runTimeCommand -default true
- -annotation ("Emit from Object Options")
- -category ("Fluid Effects")
- -command ("performFluids 0 FluidEmitFromObject 3")
- EmitFluidFromObjectOptions;
-
- runTimeCommand -default true
- -annotation ("Browse examples to import...")
- -category ("Fluid Effects")
- -command ("{VisorWindow;string $pnl=visorPanelName();if(size($pnl)>0) visorPanelMenuCommand( $pnl, \"selectOrCreateTabByLabel Fluid Examples\");}")
- GetFluidExample;
-
- runTimeCommand -default true
- -annotation ("Browse ocean and pond examples to import...")
- -category ("Fluid Effects")
- -command ("{VisorWindow;string $pnl=visorPanelName();if(size($pnl)>0) visorPanelMenuCommand( $pnl, \"selectOrCreateTabByLabel Ocean Examples\");}")
- GetOceanPondExample;
-
- runTimeCommand -default true
- -annotation ("Browse fluid Examples available for downloading...")
- -category ("Fluid Effects")
- -command ("showHelp -absolute \"http://www.aliaswavefront.com/en/Tmpl/Maya/html/index.jhtml?page=/en/Community/Download/fluids/maya5.shtml&style=normal\"")
- FluidExamplesOnTheWeb;
-
- runTimeCommand -default true
- -annotation ("Extend fluid resolution, preserving contents and voxel size")
- -category ("Fluid Effects")
- -command ("performFluids 1 ExtendFluid 0")
- ExtendFluid;
-
- runTimeCommand -default true
- -annotation ("Extend Fluid Options")
- -category ("Fluid Effects")
- -command ("performFluids 1 ExtendFluid 3")
- ExtendFluidOptions;
-
- runTimeCommand -default true
- -annotation ("Modify fluid resolution, preserving contents")
- -category ("Fluid Effects")
- -command ("performFluids 1 ResampleFluid 0")
- EditFluidResolution;
-
- runTimeCommand -default true
- -annotation ("Resample Fluid Options")
- -category ("Fluid Effects")
- -command ("performFluids 1 ResampleFluid 3")
- EditFluidResolutionOptions;
-
- runTimeCommand -default true
- -annotation ("Make Collide: Select fluid object(s) and geometry "
- + "object(s) to collide")
- -category ("Fluid Effects")
- -command ("performFluids 2 MakeCollideFluid 0")
- MakeFluidCollide;
-
- runTimeCommand -default true
- -annotation ("Make Collide Options")
- -category ("Fluid Effects")
- -command ("performFluids 2 MakeCollideFluid 3")
- MakeFluidCollideOptions;
-
- runTimeCommand -default true
- -annotation ("Select fluid(s) and objects(s) to push the fluids")
- -category ("Fluid Effects")
- -command ("createMotionField")
- MakeMotionField;
-
- runTimeCommand -default true
- -annotation ("Decrement the center of a 3D fluid sub-container. Use the Show Manipulator tool on a fluid to view a sub-container.")
- -category ("Fluid Effects")
- -command ("fluidSetSubVolumeLocation -1")
- DecrementFluidCenter;
-
- runTimeCommand -default true
- -annotation ("Increment the center of a 3D fluid sub-container. Use the Show Manipulator tool on a fluid to view a sub-container.")
- -category ("Fluid Effects")
- -command ("fluidSetSubVolumeLocation 1")
- IncrementFluidCenter;
-
- runTimeCommand -default true
- -annotation ("Set current state of fluid as its initial conditions")
- -category ("Fluid Effects")
- -command ("performSetFluidState 0")
- SetInitialState;
-
- runTimeCommand -default true
- -annotation ("Set Initial State Options")
- -category ("Fluid Effects")
- -command ("performSetFluidState 1")
- SetInitialStateOptions;
-
- runTimeCommand -default true
- -annotation ("Remove previously set initial conditions")
- -category ("Fluid Effects")
- -command ("performDeleteFluidsIC 0")
- ClearInitialState;
-
- runTimeCommand -default true
- -annotation ("Save current contents to \"Fluid Initial States\" tab in Visor")
- -category ("Fluid Effects")
- -command ("fluidSaveStateAs")
- SaveFluidStateAs;
-
- runTimeCommand -default true
- -annotation ("Runup to create playback and render cache")
- -category ("Fluid Effects")
- -command ("performFluidsDiskCache 0 mcfp")
- CreateFluidCache;
-
- runTimeCommand -default true
- -annotation ("Create Cache Options")
- -category ("Fluid Effects")
- -command ("performFluidsDiskCache 1 mcfp")
- CreateFluidCacheOptions;
-
- runTimeCommand -default true
- -annotation ("Append frame range to cache")
- -category ("Fluid Effects")
- -command ("performAppendDiskCache 0")
- AppendToFluidCache;
-
- runTimeCommand -default true
- -annotation ("Append to Cache Options")
- -category ("Fluid Effects")
- -command ("performAppendDiskCache 1")
- AppendToFluidCacheOptions;
-
- runTimeCommand -default true
- -annotation ("Truncate cache to current frame")
- -category ("Fluid Effects")
- -command ("performFluids 1 FluidTruncatePBC 0")
- TruncateFluidCache;
-
- runTimeCommand -default true
- -annotation ("Remove saved cache")
- -category ("Fluid Effects")
- -command ("performDeleteFluidsPB 0")
- DeleteFluidCache;
-
- runTimeCommand -default true
- -annotation ("Create an emitter and attach it to a fluid shape")
- -category ("Fluid Effects")
- -command ("performFluids 2 FluidEmitter 0")
- FluidEmitter;
-
- runTimeCommand -default true
- -annotation ("Emitter Options")
- -category ("Fluid Effects")
- -command ("performFluids 2 FluidEmitter 3")
- FluidEmitterOptions;
-
- runTimeCommand -default true
- -annotation ("Apply predefined gradients to fluid properties")
- -category ("Fluid Effects")
- -command ("performFluidGradients 0")
- FluidGradients;
-
- runTimeCommand -default true
- -annotation ("Fluid Gradients Options")
- -category ("Fluid Effects")
- -command ("performFluidGradients 1")
- FluidGradientsOptions;
-
- runTimeCommand -default true
- -annotation ("Paint Fluids Tool: Paint fluid properties")
- -category ("Fluid Effects")
- -command ("artFluidAttrToolScript 4")
- PaintFluidsTool;
-
- runTimeCommand -default true
- -annotation ("Artisan Paint Fluids Tool Options")
- -category ("Fluid Effects")
- -command ("artFluidAttrToolScript 3")
- PaintFluidsToolOptions;
-
- runTimeCommand -default true
- -annotation ("Set Contents from Curve")
- -category ("Fluid Effects")
- -command ("performSetFluidAttrFromCurve 0")
- SetFluidAttrFromCurve;
-
- runTimeCommand -default true
- -annotation ("Set Contents from Curve Options")
- -category ("Fluid Effects")
- -command ("performSetFluidAttrFromCurve 1")
- SetFluidAttrFromCurveOptions;
-
- runTimeCommand -default true
- -annotation ("Browse initial states to apply...")
- -category ("Fluid Effects")
- -command ("performInitialStates 0")
- InitialFluidStates;
-
- runTimeCommand -default true
- -annotation ("Initial States Options")
- -category ("Fluid Effects")
- -command ("performInitialStates 1")
- InitialFluidStatesOptions;
-
- runTimeCommand -default true
- -annotation ("Create a planar surface with assigned ocean shader and optional preview plane")
- -category ("Fluid Effects")
- -command ("performCreateOcean 0")
- CreateOcean;
-
- runTimeCommand -default true
- -annotation ("Create Ocean Options")
- -category ("Fluid Effects")
- -command ("performCreateOcean 1")
- CreateOceanOptions;
-
- runTimeCommand -default true
- -annotation ("Add an interactive surface previewing plane to selected ocean")
- -category ("Fluid Effects")
- -command ("fluidOceanAddPreviewPlane")
- AddOceanPreviewPlane;
-
- runTimeCommand -default true
- -annotation ("Add a surface locator to selected ocean")
- -category ("Fluid Effects")
- -command ("performOceanLocator 0 0")
- AddOceanSurfaceLocator;
-
- runTimeCommand -default true
- -annotation ("Create a fluid water simulation texture if it does not exist, and emit into from selected objects")
- -category ("Fluid Effects")
- -command ("performCreateOceanWake 0")
- CreateOceanWake;
-
- runTimeCommand -default true
- -annotation ("Create Ocean Wake Options")
- -category ("Fluid Effects")
- -command ("performCreateOceanWake 1")
- CreateOceanWakeOptions;
-
- runTimeCommand -default true
- -annotation ("Add a surface locator with added buoyancy dynamics to selected ocean")
- -category ("Fluid Effects")
- -command ("performOceanLocator 0 1")
- AddOceanDynamicLocator;
-
- runTimeCommand -default true
- -annotation ("Ocean Dynamic Locator Options")
- -category ("Fluid Effects")
- -command ("performOceanLocator 1 1")
- AddOceanDynamicLocatorOptions;
-
- runTimeCommand -default true
- -annotation ("Add a surface locator with added boat dynamics to selected ocean")
- -category ("Fluid Effects")
- -command ("performOceanLocator 0 3")
- AddBoatLocator;
-
- runTimeCommand -default true
- -annotation ("Boat Locator Options")
- -category ("Fluid Effects")
- -command ("performOceanLocator 1 3")
- AddBoatLocatorOptions;
-
- runTimeCommand -default true
- -annotation ("Add locator with added buoyancy dynamics driving a sphere")
- -category ("Fluid Effects")
- -command ("performOceanLocator 0 2")
- AddDynamicBuoy;
-
- runTimeCommand -default true
- -annotation ("Dynamic Buoy Options")
- -category ("Fluid Effects")
- -command ("performOceanLocator 1 2")
- AddDynamicBuoyOptions;
-
- runTimeCommand -default true
- -annotation ("Parent each selected object to a locator with buoyancy dynamics")
- -category ("Fluid Effects")
- -command ("performOceanLocator 0 4")
- FloatSelectedObjects;
-
- runTimeCommand -default true
- -annotation ("Float Selected Objects Options")
- -category ("Fluid Effects")
- -command ("performOceanLocator 1 4")
- FloatSelectedObjectsOptions;
-
- runTimeCommand -default true
- -annotation ("Parent each selected object to a locator with boat dynamics")
- -category ("Fluid Effects")
- -command ("performOceanLocator 0 5")
- MakeBoats;
-
- runTimeCommand -default true
- -annotation ("Make Boats Options")
- -category ("Fluid Effects")
- -command ("performOceanLocator 1 5")
- MakeBoatsOptions;
-
- runTimeCommand -default true
- -annotation ("Parent each selected object to a locator with motor boat dynamics")
- -category ("Fluid Effects")
- -command ("performOceanLocator 0 6")
- MakeMotorBoats;
-
- runTimeCommand -default true
- -annotation ("Make Motor Boats Options")
- -category ("Fluid Effects")
- -command ("performOceanLocator 1 6")
- MakeMotorBoatsOptions;
-
- // Pond Commands
- runTimeCommand -default true
- -annotation ("Create a pond water surface fluid simulation")
- -category ("Fluid Effects")
- -command ("performCreatePond 0")
- CreatePond;
-
- runTimeCommand -default true
- -annotation ("Create Pond Options")
- -category ("Fluid Effects")
- -command ("performCreatePond 1")
- CreatePondOptions;
-
- runTimeCommand -default true
- -annotation ("Create wake emitters for selected objects into current pond")
- -category ("Fluid Effects")
- -command ("performCreateWake 0")
- CreateWake;
-
- runTimeCommand -default true
- -annotation ("Create Wake Options")
- -category ("Fluid Effects")
- -command ("performCreateWake 1")
- CreateWakeOptions;
-
- runTimeCommand -default true
- -annotation ("Add a surface locator to selected pond")
- -category ("Fluid Effects")
- -command ("performPondLocator 0 0")
- AddPondSurfaceLocator;
-
- runTimeCommand -default true
- -annotation ("Add a surface locator with added buoyancy dynamics to selected pond")
- -category ("Fluid Effects")
- -command ("performPondLocator 0 1")
- AddPondDynamicLocator;
-
- runTimeCommand -default true
- -annotation ("Pond Dynamic Locator Options")
- -category ("Fluid Effects")
- -command ("performPondLocator 1 1")
- AddPondDynamicLocatorOptions;
-
- runTimeCommand -default true
- -annotation ("Add a surface locator with added boat dynamics to selected pond")
- -category ("Fluid Effects")
- -command ("performPondLocator 0 3")
- AddPondBoatLocator;
-
- runTimeCommand -default true
- -annotation ("Boat Locator Options")
- -category ("Fluid Effects")
- -command ("performPondLocator 1 3")
- AddPondBoatLocatorOptions;
-
- runTimeCommand -default true
- -annotation ("Add locator with added buoyancy dynamics driving a sphere")
- -category ("Fluid Effects")
- -command ("performPondLocator 0 2")
- AddPondDynamicBuoy;
-
- runTimeCommand -default true
- -annotation ("Dynamic Buoy Options")
- -category ("Fluid Effects")
- -command ("performPondLocator 1 2")
- AddPondDynamicBuoyOptions;
-
- runTimeCommand -default true
- -annotation ("Parent each selected object to a locator with buoyancy dynamics")
- -category ("Fluid Effects")
- -command ("performPondLocator 0 4")
- FloatSelectedPondObjects;
-
- runTimeCommand -default true
- -annotation ("Float Selected Objects Options")
- -category ("Fluid Effects")
- -command ("performPondLocator 1 4")
- FloatSelectedPondObjectsOptions;
-
- runTimeCommand -default true
- -annotation ("Parent each selected object to a locator with boat dynamics")
- -category ("Fluid Effects")
- -command ("performPondLocator 0 5")
- MakePondBoats;
-
- runTimeCommand -default true
- -annotation ("Make Boats Options")
- -category ("Fluid Effects")
- -command ("performPondLocator 1 5")
- MakePondBoatsOptions;
-
- runTimeCommand -default true
- -annotation ("Parent each selected object to a locator with motor boat dynamics")
- -category ("Fluid Effects")
- -command ("performPondLocator 0 6")
- MakePondMotorBoats;
-
- runTimeCommand -default true
- -annotation ("Make Motor Boats Options")
- -category ("Fluid Effects")
- -command ("performPondLocator 1 6")
- MakePondMotorBoatsOptions;
-
- }
-
- //
- // Fields menu.
- //
- // ----------------------------------------------------------------------
-
- runTimeCommand -default true
- -annotation ("Air: Create an air field. Select objects to be " +
- "affected by the field")
- -category ("Fields")
- -command ("performDynamics 1 Air 0")
- Air;
-
- runTimeCommand -default true
- -annotation ("Air Options")
- -category ("Fields")
- -command ("performDynamics 1 Air 1")
- AirOptions;
-
- runTimeCommand -default true
- -annotation ("Drag: Create a drag field. Select objects to be " +
- "affected by the field")
- -category ("Fields")
- -command ("performDynamics 1 Drag 0")
- Drag;
-
- runTimeCommand -default true
- -annotation ("Drag Options")
- -category ("Fields")
- -command ("performDynamics 1 Drag 1")
- DragOptions;
-
- runTimeCommand -default true
- -annotation ("Gravity: Create a gravity field. Select objects " +
- "to be affected by the field")
- -category ("Fields")
- -command ("performDynamics 1 Gravity 0")
- Gravity;
-
- runTimeCommand -default true
- -annotation ("Gravity Options")
- -category ("Fields")
- -command ("performDynamics 1 Gravity 1")
- GravityOptions;
-
- runTimeCommand -default true
- -annotation ("Newton: Create a newton field. Select objects " +
- "to be affected by the field")
- -category ("Fields")
- -command ("performDynamics 1 Newton 0")
- Newton;
-
- runTimeCommand -default true
- -annotation ("Newton Options")
- -category ("Fields")
- -command ("performDynamics 1 Newton 1")
- NewtonOptions;
-
- runTimeCommand -default true
- -annotation ("Radial: Create a radial field. Select objects " +
- "to be affected by the field")
- -category ("Fields")
- -command ("performDynamics 1 Radial 0")
- Radial;
-
- runTimeCommand -default true
- -annotation ("Radial Options")
- -category ("Fields")
- -command ("performDynamics 1 Radial 1")
- RadialOptions;
-
- runTimeCommand -default true
- -annotation ("Turbulence: Create a turbulence field. Select " +
- "objects to be affected by the field")
- -category ("Fields")
- -command ("performDynamics 1 Turbulence 0")
- Turbulence;
-
- runTimeCommand -default true
- -annotation ("Turbulence Options")
- -category ("Fields")
- -command ("performDynamics 1 Turbulence 1")
- TurbulenceOptions;
-
- runTimeCommand -default true
- -annotation ("Uniform: Create a unform field. Select objects " +
- "to be affected by the field")
- -category ("Fields")
- -command ("performDynamics 1 Uniform 0")
- Uniform;
-
- runTimeCommand -default true
- -annotation ("Uniform Options")
- -category ("Fields")
- -command ("performDynamics 1 Uniform 1")
- UniformOptions;
-
- runTimeCommand -default true
- -annotation ("Vortex: Create a vortex field. Select objects " +
- "to be affected by the field")
- -category ("Fields")
- -command ("performDynamics 1 Vortex 0")
- Vortex;
-
- runTimeCommand -default true
- -annotation ("Vortex Options")
- -category ("Fields")
- -command ("performDynamics 1 Vortex 1")
- VortexOptions;
-
- runTimeCommand -default true
- -annotation ("Volume Axis: Create a volume axis field. Select " +
- "objects to be affected by the field")
- -category ("Fields")
- -command ("performDynamics 1 VolumeAxis 0")
- VolumeAxis;
-
- runTimeCommand -default true
- -annotation ("Volume Axis Options")
- -category ("Fields")
- -command ("performDynamics 1 VolumeAxis 1")
- VolumeAxisOptions;
-
- runTimeCommand -default true
- -annotation ("Use Selected Object as Source of Field: Select " +
- "field, then select object to be its source")
- -category ("Fields")
- -command ("addDynamic")
- AttachSelectedAsSourceField;
-
- runTimeCommand -default true
- -annotation ("Affect Selected Object(s): Select object(s) to " +
- "be affected, then select field")
- -category ("Fields")
- -command ("performDynamicsConnect 1")
- AffectSelectedObject;
-
- //
- // Soft/Rigid Bodies menu.
- //
- // ----------------------------------------------------------------------
-
- runTimeCommand -default true
- -annotation ("Active Rigid Body: Select geometry " +
- "objects to create rigid bodies")
- -category ("Soft and Rigid Bodies")
- -command ("performDynamics 2 ActiveRigid 0")
- CreateActiveRigidBody;
-
- runTimeCommand -default true
- -annotation ("Create Active Rigid Body Options")
- -category ("Soft and Rigid Bodies")
- -command ("performDynamics 2 ActiveRigid 1")
- CreateActiveRigidBodyOptions;
-
- runTimeCommand -default true
- -annotation ("Passive Rigid Body: Select geometry " +
- "objects to create rigid bodies")
- -category ("Soft and Rigid Bodies")
- -command ("performDynamics 2 PassiveRigid 0")
- CreatePassiveRigidBody;
-
- runTimeCommand -default true
- -annotation ("Create Passive Rigid Body Options")
- -category ("Soft and Rigid Bodies")
- -command ("performDynamics 2 PassiveRigid 1")
- CreatePassiveRigidBodyOptions;
-
- runTimeCommand -default true
- -annotation ("Constraint: Select rigid bodies to " +
- "be constrained")
- -category ("Soft and Rigid Bodies")
- -command ("performDynamics 2 Constrain 0")
- CreateConstraint;
-
- runTimeCommand -default true
- -annotation ("Create Constraint Options")
- -category ("Soft and Rigid Bodies")
- -command ("performDynamics 2 Constrain 1")
- CreateConstraintOptions;
-
- runTimeCommand -default true
- -annotation ("Set Active Key: Select one or more active " +
- "rigid bodies")
- -category ("Soft and Rigid Bodies")
- -command ("setRigidKeyframe(1)")
- SetActiveKey;
-
- runTimeCommand -default true
- -annotation ("Set Passive Key: Select one or more passive " +
- "rigid bodies")
- -category ("Soft and Rigid Bodies")
- -command ("setRigidKeyframe(0)")
- SetPassiveKey;
-
- runTimeCommand -default true
- -annotation ("Break Rigid Body Connections: Break " +
- "connections on selected rigid bodies that " +
- "have been keyframed or baked")
- -category ("Soft and Rigid Bodies")
- -command ("breakRigidBodyConnections")
- BreakRigidBodyConnection;
-
- runTimeCommand -default true
- -annotation ("Create Soft Body: Select geometry object(s) " +
- "to create soft bodies")
- -category ("Soft and Rigid Bodies")
- -command ("performDynamics 2 Soft 0")
- CreateSoftBody;
-
- runTimeCommand -default true
- -annotation ("Create Soft Body Options")
- -category ("Soft and Rigid Bodies")
- -command ("performDynamics 2 Soft 1")
- CreateSoftBodyOptions;
-
- runTimeCommand -default true
- -annotation ("Create Springs: Select particle(s) to add springs")
- -category ("Soft and Rigid Bodies")
- -command ("performDynamics 2 Spring 0")
- CreateSpring;
-
- runTimeCommand -default true
- -annotation ("Create Springs Options")
- -category ("Soft and Rigid Bodies")
- -command ("performDynamics 2 Spring 1")
- CreateSpringOptions;
-
- //
- // Effects menu.
- //
- // ----------------------------------------------------------------------
-
- runTimeCommand -default true
- -annotation ("Fire: Create fire effect")
- -category ("Effects")
- -command ("performDynamicsClipEffects Fire 0")
- Fire;
-
- runTimeCommand -default true
- -annotation ("Fire Options")
- -category ("Effects")
- -command ("performDynamicsClipEffects Fire 1")
- FireOptions;
-
- runTimeCommand -default true
- -annotation ("Smoke: Create smoke effect")
- -category ("Effects")
- -command ("performDynamicsClipEffects Smoke 0")
- Smoke;
-
- runTimeCommand -default true
- -annotation ("Create Smoke Options")
- -category ("Effects")
- -command ("performDynamicsClipEffects Smoke 1")
- SmokeOptions;
-
- runTimeCommand -default true
- -annotation ("Fireworks: Create fireworks effect")
- -category ("Effects")
- -command ("performDynamicsClipEffects Fireworks 0")
- Fireworks;
-
- runTimeCommand -default true
- -annotation ("Fireworks Options")
- -category ("Effects")
- -command ("performDynamicsClipEffects Fireworks 1")
- FireworksOptions;
-
- runTimeCommand -default true
- -annotation ("Lightning: Create lightning effect")
- -category ("Effects")
- -command ("performDynamicsClipEffects Lightning 0")
- Lightning;
-
- runTimeCommand -default true
- -annotation ("Lightning Options")
- -category ("Effects")
- -command ("performDynamicsClipEffects Lightning 1")
- LightningOptions;
-
- runTimeCommand -default true
- -annotation ("Shatter: Create shatter effects")
- -category ("Effects")
- -command ("performDynamicsClipEffects Shatter 0")
- Shatter;
-
- runTimeCommand -default true
- -annotation ("Shatter Options")
- -category ("Effects")
- -command ("performDynamicsClipEffects Shatter 1")
- ShatterOptions;
-
- runTimeCommand -default true
- -annotation ("Flow: Create flow along curves")
- -category ("Effects")
- -command ("performDynamicsClipEffects Flow 0")
- CurveFlow;
-
- runTimeCommand -default true
- -annotation ("Flow Options")
- -category ("Effects")
- -command ("performDynamicsClipEffects Flow 1")
- CurveFlowOptions;
-
- runTimeCommand -default true
- -annotation ("Surface Flow: Create flow along surfaces")
- -category ("Effects")
- -command ("performDynamicsClipEffects SurfaceFlow 0")
- SurfaceFlow;
-
- runTimeCommand -default true
- -annotation ("Surface Flow Options")
- -category ("Effects")
- -command ("performDynamicsClipEffects SurfaceFlow 1")
- SurfaceFlowOptions;
-
- runTimeCommand -default true
- -annotation ("Delete Surface Flow: Delete flow along surfaces")
- -category ("Effects")
- -command ("performDynamicsClipEffects DeleteSurfaceFlow 0")
- DeleteSurfaceFlow;
-
- runTimeCommand -default true
- -annotation ("Delete Surface Flow Options")
- -category ("Effects")
- -command ("performDynamicsClipEffects DeleteSurfaceFlow 1")
- DeleteSurfaceFlowOptions;
-
- //
- // Solvers menu.
- //
- // ----------------------------------------------------------------------
-
- runTimeCommand -default true
- -annotation ("Rigid Body Solver: Display the Rigid Body Solver Editor")
- -category ("Solvers")
- -command ("invokeRigidSolverEditor")
- RigidBodySolver;
-
- runTimeCommand -default true
- -annotation ("Create Rigid Body Solver: Creates a new rigid " +
- "body solver and makes it current")
- -category ("Solvers")
- -command ("evalEcho rigidSolver -create")
- CreateRigidBodySolver;
-
- runTimeCommand -default true
- -annotation ("Set Rigid Body Interpenetration: Allow selected " +
- "rigid bodies to interpenetrate")
- -category ("Solvers")
- -command ("rigidBodyInterpenetrate 1")
- SetRigidBodyInterpenetration;
-
- runTimeCommand -default true
- -annotation ("Set Rigid Body Collision: Allow selected rigid " +
- "bodies to collide")
- -category ("Solvers")
- -command ("rigidBodyInterpenetrate 0")
- SetRigidBodyCollision;
-
- runTimeCommand -default true
- -annotation ("Enable Cache: Turn memory caching on for all " +
- "selected particles and rigid bodies")
- -category ("Solvers")
- -command ("cacheControl 1")
- EnableMemoryCaching;
-
- runTimeCommand -default true
- -annotation ("Disable Cache: Turn memory caching off for all " +
- "selected particles and rigid bodies")
- -category ("Solvers")
- -command ("cacheControl 0")
- DisableMemoryCaching;
-
- runTimeCommand -default true
- -annotation ("Delete Cache: Remove from memory the cache " +
- "for all selected particles and rigid bodies")
- -category ("Solvers")
- -command ("cacheDelete")
- DeleteMemoryCaching;
-
- runTimeCommand -default true
- -annotation ("Create Particle Disk Cache: Write cache files " +
- "to disk for current playback range")
- -category ("Solvers")
- -command ("performDynamics 0 ParticleRenderCache 0")
- CreateParticleDiskCache;
-
- runTimeCommand -default true
- -annotation ("Create Particle Disk Cache Options")
- -category ("Solvers")
- -command ("performDynamics 2 ParticleRenderCache 1")
- CreateParticleDiskCacheOptions;
-
- runTimeCommand -default true
- -annotation ("Edit the oversampling level or particle disk " +
- "cache settings")
- -category ("Solvers")
- -command ("invokeDynGlobalsEditor")
- EditOversamplingForCacheSettings;
- }
- particleMenus();
-
- // ======================================================================
- // ======================================================================
- //
- // Rendering menu set, ie. Lighting/Shading, Render, and Paint Effects.
- //
- // ======================================================================
- // ======================================================================
- proc renderingMenus() {
- //
- // Lighting/Shading menu.
- //
- // ----------------------------------------------------------------------
-
- runTimeCommand -default true
- -annotation ("Make Light Links")
- -category ("Lights and Shading")
- -command ("lightlink -make -useActiveLights -useActiveObjects")
- MakeLightLinks;
-
- runTimeCommand -default true
- -annotation ("Break Light Links")
- -category ("Lights and Shading")
- -command ("lightlink -break -useActiveLights -useActiveObjects")
- BreakLightLinks;
-
- runTimeCommand -default true
- -annotation ("Select Objects Illuminated by Light")
- -category ("Lights and Shading")
- -command ("RenLightingSelectObjects")
- SelectObjectsIlluminatedByLight;
-
- runTimeCommand -default true
- -annotation ("Select Lights Illuminating Object")
- -category ("Lights and Shading")
- -command ("RenLightingSelectLights")
- SelectLightsIlluminatingObject;
-
- runTimeCommand -default true
- -annotation ("Show Shading Group Attribute Editor")
- -category ("Lights and Shading")
- -command ("showShadingGroupAttrEditor")
- ShowShadingGroupAttributeEditor;
-
- runTimeCommand -default true
- -annotation ("Displacement to Polygon")
- -category ("Lights and Shading")
- -command ("displacementToPoly")
- DisplacementToPolygon;
-
-
- // 3d Paint Tool.
- runTimeCommand -default true
- -annotation ("3D Paint Tool: Paint file textures")
- -category ("Texturing")
- -command ("art3dPaintToolScript 4")
- Art3dPaintTool;
-
- runTimeCommand -default true
- -annotation ("3D Paint Tool")
- -category ("Texturing")
- -command ("art3dPaintToolScript 3")
- Art3dPaintToolOptions;
-
- runTimeCommand -default true
- -annotation ("Create Texture Reference Object")
- -category ("Texturing")
- -command ("makeReferenceObject")
- CreateTextureReferenceObject;
-
- runTimeCommand -default true
- -annotation ("Delete Texture Reference Object")
- -category ("Texturing")
- -command ("deleteReferenceObject")
- DeleteTextureReferenceObject;
-
- runTimeCommand -default true
- -annotation ("Select Texture Reference Object")
- -category ("Texturing")
- -command ("selectReferenceObject")
- SelectTextureReferenceObject;
-
- runTimeCommand -default true
- -annotation ("NURBS Texture Placement Tool")
- -category ("Texturing")
- -command ("setToolTo defaultTexturePlacementContext")
- NURBSTexturePlacementTool;
-
- runTimeCommand -default true
- -annotation ("NURBS Texture Placement Tool Options")
- -category ("Texturing")
- -command ("setToolTo defaultTexturePlacementContext; toolPropertyWindow")
- NURBSTexturePlacementToolOptions;
-
- //
- // Render menu.
- //
- // ----------------------------------------------------------------------
-
- runTimeCommand -default true
- -annotation ("Render the current frame into a Render View window")
- -category ("Render")
- -command ("renderIntoNewWindow render")
- RenderIntoNewWindow;
-
- runTimeCommand -default true
- -annotation ("Redo Previous Render")
- -category ("Render")
- -command ("redoPreviousRender render")
- RedoPreviousRender;
-
- runTimeCommand -default true
- -annotation ("IPR Render the current frame into a Render View window")
- -category ("Render")
- -command ("renderIntoNewWindow iprRender")
- IPRRenderIntoNewWindow;
-
- runTimeCommand -default true
- -annotation ("Redo Previous IPR Render")
- -category ("Render")
- -command ("redoPreviousRender iprRender")
- RedoPreviousIPRRender;
-
- runTimeCommand -default true
- -annotation ("Show Render Diagnostics in the Script Editor")
- -category ("Render")
- -command ("mayaRenderDiagnostics")
- RenderDiagnostics;
-
- runTimeCommand -default true
- -annotation ("Batch Render: Export the current scene to a file and "
- + "render that file in the background")
- -category ("Render")
- -command ("mayaBatchRender")
- BatchRender;
-
- runTimeCommand -default true
- -annotation ("Batch Render Options")
- -category ("Render")
- -command ("batchRenderOptions")
- BatchRenderOptions;
-
- runTimeCommand -default true
- -annotation ("Cancel Batch Render")
- -category ("Render")
- -command ("cancelBatchRender")
- CancelBatchRender;
-
- runTimeCommand -default true
- -annotation ("Show Batch Render: Display the batch render image")
- -category ("Render")
- -command ("showBatchRender")
- ShowBatchRender;
-
- if (!`about -nt` && !`about -mac`) {
- runTimeCommand -default true
- -annotation ("DistributeRender")
- -category ("Render")
- -command ("distributedRenderSession")
- DistributeRender;
- }
-
- //
- // Paint Effects menu.
- //
- // ----------------------------------------------------------------------
-
- runTimeCommand -default true
- -annotation ("Open Paint Effects Panel")
- -category ("Paint Effects")
- -command ("creatorOpenPaintEffectsPanel_NamedCmd")
- PaintEffectsPanel;
-
- runTimeCommand -default true
- -annotation ("Paint Effects Tool: Draw strokes on " +
- "paintable surfaces or the ground plane")
- -category ("Paint Effects")
- -command ("creatorSetPaintEffectCtx_NamedCmd")
- PaintEffectsTool;
-
- runTimeCommand -default true
- -annotation ("Paint Effects Tool Options")
- -category ("Paint Effects")
- -command ("setToolTo $gCreatorWireCtx; toolPropertyWindow;")
- PaintEffectsToolOptions;
-
- runTimeCommand -default true
- -annotation ("Make Paintable: Make the selected surface(s) " +
- "paintable, and other surfaces not paintable")
- -category ("Paint Effects")
- -command ("creatorMakePaintable_NamedCmd")
- MakePaintable;
-
- runTimeCommand -default true
- -annotation ("Template Brush Settings: Edit the brush " +
- "settings which will be applied to subsequent strokes")
- -category ("Paint Effects")
- -command ("brushToolSettings")
- TemplateBrushSettings;
-
- runTimeCommand -default true
- -annotation ("Reset Template Brush: Reset the template " +
- "brush attributes to their default values")
- -category ("Paint Effects")
- -command ("resetBrush")
- ResetTemplateBrush;
-
- runTimeCommand -default true
- -annotation ("Paint on Paintable Objects: When on, project " +
- "strokes onto the paintable objects in the scene")
- -category ("Paint Effects")
- -command ("dynWireCtx -e -dp 1 $gCreatorWireCtx")
- PaintOnPaintableObjects;
-
- runTimeCommand -default true
- -annotation ("Toggle Paint On Paintable Objects")
- -category ("Paint Effects")
- -command ("creatorTogglePaintOnPaintable_NamedCmd")
- TogglePaintOnPaintableObjects;
-
- runTimeCommand -default true
- -annotation ("Paint on View Plane: When on, project strokes " +
- "onto the view plane (Like a piece of glass in " +
- "front of the camera)")
- -category ("Paint Effects")
- -command ("dynWireCtx -e -dp 0 $gCreatorWireCtx")
- PaintOnViewPlane;
-
- runTimeCommand -default true
- -annotation ("Apply Settings to Last Stroke: Copy the current " +
- "template brush settings onto the most recently " +
- "created stroke")
- -category ("Paint Effects")
- -command ("copyTemplateBrushToSelected")
- ApplySettingsToLastStroke;
-
- runTimeCommand -default true
- -annotation ("Get Settings from Selected Stroke: Copy the " +
- "brush settings from the currently selected " +
- "stroke to the template brush")
- -category ("Paint Effects")
- -command ("setTemplateToCurrentBrush")
- GetSettingsFromSelectedStroke;
-
- runTimeCommand -default true
- -annotation ("Apply Settings to Selected Strokes: Copy the " +
- "template brush settings to the currently " +
- "selected strokes")
- -category ("Paint Effects")
- -command ("copyTemplateBrushToSelected")
- ApplySettingsToSelectedStroke;
-
- runTimeCommand -default true
- -annotation ("Share One Brush: Cause selected strokes to " +
- "share a common brush (so that editing the " +
- "brush changes the appearance of all these strokes)")
- -category ("Paint Effects")
- -command ("useSameBrush")
- ShareOneBrush;
-
- runTimeCommand -default true
- -annotation ("Remove Brush Sharing: Give each selected " +
- "stroke a unique brush (if it was previously " +
- "sharing a brush)")
- -category ("Paint Effects")
- -command ("unShareBrush")
- RemoveBrushSharing;
-
- runTimeCommand -default true
- -annotation ("Select Brush/Stroke Names Containing: Select brushes/strokes " +
- "whose name contains the specified characters")
- -category ("Paint Effects")
- -command ("selectBrushesWhoseNameContains")
- SelectBrushNames;
-
- runTimeCommand -default true
- -annotation ("Loop Brush Animation: Make the selected " +
- "brush's animation loop seamlessly")
- -category ("Paint Effects")
- -command ("performLoopBrushAnim false")
- LoopBrushAnimation;
-
- runTimeCommand -default true
- -annotation ("Loop Brush Animation Options")
- -category ("Paint Effects")
- -command ("performLoopBrushAnim true")
- LoopBrushAnimationOptions;
-
- runTimeCommand -default true
- -annotation ("Make Brush Spring: Add an expression " +
- "simulating spring dynamics to the selected stroke(s)")
- -category ("Paint Effects")
- -command ("performMakeBrushSpring false")
- MakeBrushSpring;
-
- runTimeCommand -default true
- -annotation ("Make Brush Spring Options")
- -category ("Paint Effects")
- -command ("performMakeBrushSpring true")
- MakeBrushSpringOptions;
-
- runTimeCommand -default true
- -annotation ("Bake Spring Animation: Create animation " +
- "curves for any selected stroke(s) which " +
- "had \"Make Brush Spring\" applied")
- -category ("Paint Effects")
- -command ("performBakeBrushSpringAnim false")
- BakeSpringAnimation;
-
- runTimeCommand -default true
- -annotation ("Bake Spring Animation Options")
- -category ("Paint Effects")
- -command ("performBakeBrushSpringAnim true")
- BakeSpringAnimationOptions;
-
- runTimeCommand -default true
- -annotation ("Simplify Stroke Path Curves: Reduce the " +
- "number of CVs in the selected stroke(s)")
- -category ("Paint Effects")
- -command ("simplifyStrokes 4")
- SimplifyStrokePathCurves;
-
- runTimeCommand -default true
- -annotation ("Set Stroke Control Curves: Make selected " +
- "curve(s) control the selected stroke(s) " +
- "(see Curve Follow attribute)")
- -category ("Paint Effects")
- -command ("bindCurvesToStrokes")
- SetStrokeControlCurves;
-
- runTimeCommand -default true
- -annotation ("Attach Brush to Curves: Create a new stroke " +
- "using the selected curve(s) and the template brush")
- -category ("Paint Effects")
- -command ("convertCurvesToStrokes")
- AttachBrushToCurves;
-
- runTimeCommand -default true
- -annotation ("Make Pressure Curve: create a curve to " +
- "adjust brushstroke pressure values")
- -category ("Paint Effects")
- -command ("performMakePressureCurve false")
- MakePressureCurve;
-
- runTimeCommand -default true
- -annotation ("Make Pressure Curve Options")
- -category ("Paint Effects")
- -command ("performMakePressureCurve true")
- MakePressureCurveOptions;
-
- runTimeCommand -default true
- -annotation ("Paint Grid: Paint current brush onto selected " +
- "surfaces using a grid layout")
- -category ("Paint Effects")
- -command ("performPaintGrid false")
- PaintGrid;
-
- runTimeCommand -default true
- -annotation ("Paint Grid Options")
- -category ("Paint Effects")
- -command ("performPaintGrid true")
- PaintGridOptions;
-
- runTimeCommand -default true
- -annotation ("Paint Random: Paint current brush onto selected " +
- "surfaces using a random layout")
- -category ("Paint Effects")
- -command ("performPaintRandom false")
- PaintRandom;
-
- runTimeCommand -default true
- -annotation ("Paint Random Options")
- -category ("Paint Effects")
- -command ("performPaintRandom true")
- PaintRandomOptions;
-
-
- runTimeCommand -default true
- -annotation ("Paint Effects Globals: Edit global Paint " +
- "Effects attributes")
- -category ("Paint Effects")
- -command ("creatorGlobalSettings")
- PaintEffectsGlobalSettings;
-
- runTimeCommand -default true
- -annotation ("Mesh Quality: Edit mesh quality attributes for "
- +"selected stroke or paint effects mesh")
- -category ("Paint Effects")
- -command ("paintEffectsMeshQuality")
- PaintEffectsMeshQuality;
-
- runTimeCommand -default true
- -annotation ("Preset Blending: Set mix-in levels for brush presets")
- -category ("Paint Effects")
- -command ("brushPresetBlendWin")
- PresetBlendingWindow;
-
- runTimeCommand -default true
- -annotation ("Save Brush Preset: Save the settings of " +
- "the template brush to current shelf or Visor directory")
- -category ("Paint Effects")
- -command ("saveBrushToShelf")
- SaveBrushPreset;
-
- runTimeCommand -default true
- -annotation ("Clear the Paint Effects view")
- -category ("Paint Effects")
- -command ("{if (`optionVar -q dynPaint23dToggle` == 2) " +
- "{global string $gDynPaintEditorName; " +
- "float $cc[] = `optionVar -q dynPaintPanelClearColour`; " +
- "dynPaintEditor -e -cl $cc[0] $cc[1] $cc[2] " +
- "$gDynPaintEditorName;}}")
- ClearPaintEffectsView;
-
- runTimeCommand -default true
- -annotation ("Canvas Undo")
- -category ("Paint Effects")
- -command ("dynPaintEditor -e -cu $gDynPaintEditorName;")
- UndoCanvas;
-
- runTimeCommand -default true
- -annotation ("toggle tube direction between alongPath and alongNormal"
- +"(useful with plants in canvas mode)")
- -category ("Paint Effects")
- -command ("setAttr (getDefaultBrush() + \".tubeDirection\")"
- +"(!( `getAttr( getDefaultBrush() + \".tubeDirection\" )`));")
- FlipTubeDirection;
-
- runTimeCommand -default true
- -annotation ("toggle paint at depth mode")
- -category ("Paint Effects")
- -command (
- "if (`dynWireCtx -q -pd dynWireCtx1`) {\n"
- +" dynWireCtx -e -pd false dynWireCtx1;\n"
- +" print \"Paint At Depth Now OFF\";\n"
- +"} else {\n"
- +" dynWireCtx -e -pd true dynWireCtx1;\n"
- +" print \"Paint At Depth Now ON\";\n"
- +"}")
- TogglePaintAtDepth;
-
- runTimeCommand -default true
- -annotation ("Brush Preset Blend (Press)")
- -category ("Paint Effects")
- -command ("setPresetBlend(0.2, 0.2)")
- BrushPresetBlend;
-
- runTimeCommand -default true
- -annotation ("Brush Preset Blend Off (Release)")
- -category ("Paint Effects")
- -command ("restorePresetBlend()")
- BrushPresetBlendOff;
-
- runTimeCommand -default true
- -annotation ("Brush Preset Blend Shading (Press)")
- -category ("Paint Effects")
- -command ("setPresetBlend(0.0, 0.3)")
- BrushPresetBlendShading;
-
- runTimeCommand -default true
- -annotation ("Brush Preset Blend Shading Off (Release)")
- -category ("Paint Effects")
- -command ("restorePresetBlend()")
- BrushPresetBlendShadingOff;
-
- runTimeCommand -default true
- -annotation ("Brush Preset Blend Shape (Press)")
- -category ("Paint Effects")
- -command ("setPresetBlend(0.3, 0.0)")
- BrushPresetBlendShape;
-
- runTimeCommand -default true
- -annotation ("Brush Preset Blend Shape Off (Release)")
- -category ("Paint Effects")
- -command ("restorePresetBlend()")
- BrushPresetBlendShapeOff;
-
- runTimeCommand -default true
- -annotation ("Brush Preset Replace Shading (Press)")
- -category ("Paint Effects")
- -command ("setPresetBlend(0.0, 1.0)")
- BrushPresetReplaceShading;
-
- runTimeCommand -default true
- -annotation ("Brush Preset Replace Shading Off (Release)")
- -category ("Paint Effects")
- -command ("restorePresetBlend()")
- BrushPresetReplaceShadingOff;
-
- runTimeCommand -default true
- -annotation ("Toggle Opposite Flag Of Selected Shapes")
- -category ("Paint Effects")
- -command ("string $selectionList[] = `ls -sl -l -dag -leaf`;\n" +
- "string $selection;\nfor ($selection in $selectionList) {\n" +
- " if (`nodeType $selection` == \"nurbsSurface\") {\n" +
- " int $op = `getAttr ($selection + \".opposite\")`;\n" +
- " $op = !$op;\n" +
- " setAttr ($selection + \".opposite\") $op;\n" +
- " }\n" +
- "}")
- ToggleOppositeFlagOfSelectedShapes;
-
- runTimeCommand -default true
- -annotation ("Brush Animation Menu (Press)")
- -category ("Paint Effects")
- -command ("creatorBrushAnimationMM")
- BrushAnimationMarkingMenu;
-
- runTimeCommand -default true
- -annotation ("Brush Animation Menu (Release)")
- -category ("Paint Effects")
- -command ("creatorDeletePopupMM")
- BrushAnimationMarkingMenuPopDown;
-
- runTimeCommand -default true
- -annotation ("Curve Utilities Menu (Press)")
- -category ("Paint Effects")
- -command ("creatorCurveUtilityMM")
- CurveUtilitiesMarkingMenu;
-
- runTimeCommand -default true
- -annotation ("Curve Utilities Menu (Release)")
- -category ("Paint Effects")
- -command ("creatorDeletePopupMM")
- CurveUtilitiesMarkingMenuPopDown;
-
- runTimeCommand -default true
- -annotation ("Auto Paint Menu (Press)")
- -category ("Paint Effects")
- -command ("creatorAutoPaintMM")
- AutoPaintMarkingMenu;
-
- runTimeCommand -default true
- -annotation ("Auto Paint Menu (Release)")
- -category ("Paint Effects")
- -command ("creatorDeletePopupMM")
- AutoPaintMarkingMenuPopDown;
-
- runTimeCommand -default true
- -annotation ("Swap from Paint Effects to 3D view (Press)")
- -category ("Paint Effects")
- -command ("dynPaintSwapPanelPress")
- PaintEffectPanelActivate;
-
- runTimeCommand -default true
- -annotation ("Swap from Paint Effects to 3D view (Release)")
- -category ("Paint Effects")
- -command ("dynPaintSwapPanelRelease")
- PaintEffectPanelDeactivate;
- }
-
- runTimeCommand -default true
- -annotation ("Paint Effects To Polygons")
- -category ("Paint Effects")
- -command ("performPaintEffectsToPoly false")
- PaintEffectsToPoly;
-
- runTimeCommand -default true
- -annotation ("Paint Effects To Polygons Options")
- -category ("Paint Effects")
- -command ("performPaintEffectsToPoly true")
- PaintEffectsToPolyOptions;
-
- renderingMenus();
-
- // ======================================================================
- // ======================================================================
- //
- // Some other category of commands.
- //
- // ======================================================================
- // ======================================================================
-
- proc miscCommands() {
- //
- // Modeling Panel commands.
- //
- // ----------------------------------------------------------------------
-
- // Display Wireframe for current panel.
- //
- runTimeCommand -default true
- -annotation ("Wireframe Display")
- -category ("Modeling Panel")
- -command ("displaySmoothness -full;\n" +
- "{\n" +
- " string $currentPanel = `getPanel -underPointer`;\n" +
- " if (\"\" == $currentPanel) {\n" +
- " $currentPanel = `getPanel -withFocus`;\n" +
- " }\n" +
- " if (\"\" != $currentPanel) {\n" +
- " string $panelType = `getPanel -typeOf $currentPanel`;\n" +
- " if ($panelType == \"modelPanel\") {\n" +
- " modelEditor -edit -displayAppearance \"wireframe\" \n" +
- " -displayLights \"default\" $currentPanel;\n" +
- " } else if (`isTrue \"MayaCreatorExists\"` && `scriptedPanel -exists $currentPanel` \n" +
- " && `scriptedPanel -query -type $currentPanel` == \"dynPaintScriptedPanelType\") {\n" +
- " dynPaintEditor -edit -displayAppearance \"wireframe\" \n" +
- " -displayLights \"default\" $gDynPaintEditorName;\n" +
- " }\n" +
- " }\n" +
- "}\n")
- DisplayWireframe;
-
- // Display Shaded for current panel.
- //
- runTimeCommand -default true
- -annotation ("Shaded Display")
- -category ("Modeling Panel")
- -command ("{\n" +
- " string $currentPanel = `getPanel -underPointer`;\n" +
- " if (\"\" == $currentPanel) {\n" +
- " $currentPanel = `getPanel -withFocus`;\n" +
- " }\n" +
- " if (\"\" != $currentPanel) {\n" +
- " string $panelType = `getPanel -typeOf $currentPanel`;\n" +
- " if ($panelType == \"modelPanel\") {\n" +
- " modelEditor -edit -displayAppearance \"smoothShaded\" -displayTextures off \n" +
- " -displayLights \"default\" $currentPanel;\n" +
- " } else if (`isTrue \"MayaCreatorExists\"` && `scriptedPanel -exists $currentPanel` \n" +
- " && `scriptedPanel -query -type $currentPanel` == \"dynPaintScriptedPanelType\") {\n" +
- " dynPaintEditor -edit -displayTextures 0 -displayAppearance \"smoothShaded\"\n" +
- " -displayLights \"default\" $gDynPaintEditorName;\n" +
- " }\n" +
- " }\n" +
- "}\n")
- DisplayShaded;
-
- // Display Smooth Shaded without changing other parameters for current panel.
- //
- runTimeCommand -default true
- -annotation ("Smooth Shaded Display")
- -category ("Modeling Panel")
- -command ("{\n" +
- " string $currentPanel = `getPanel -underPointer`;\n" +
- " if (\"\" == $currentPanel) {\n" +
- " $currentPanel = `getPanel -withFocus`;\n" +
- " }\n" +
- " if (\"\" != $currentPanel) {\n" +
- " string $panelType = `getPanel -typeOf $currentPanel`;\n" +
- " if ($panelType == \"modelPanel\") {\n" +
- " modelEditor -edit -displayAppearance \"smoothShaded\" \n" +
- " $currentPanel;\n" +
- " } else if (`isTrue \"MayaCreatorExists\"` && `scriptedPanel -exists $currentPanel` \n" +
- " && `scriptedPanel -query -type $currentPanel` == \"dynPaintScriptedPanelType\") {\n" +
- " dynPaintEditor -edit -displayAppearance \"smoothShaded\"\n" +
- " $gDynPaintEditorName;\n" +
- " }\n" +
- " }\n" +
- "}\n")
- DisplaySmoothShaded;
-
- // Display Shaded and Textured for current panel.
- //
- runTimeCommand -default true
- -annotation ("Shaded and Textured Display")
- -category ("Modeling Panel")
- -command ( "{" +
- " string $currentPanel = `getPanel -withFocus`; " +
- " string $panelType = `getPanel -to $currentPanel`;" +
- " if ($panelType == \"modelPanel\") { " +
- " modelEditor -edit -da \"smoothShaded\" -displayTextures on " +
- " -dl \"default\" $currentPanel;" +
- " } else if (`isTrue \"MayaCreatorExists\"` && `scriptedPanel -ex $currentPanel` && `scriptedPanel -q -type $currentPanel` == \"dynPaintScriptedPanelType\") {" +
- " dynPaintEditor -e -dtx 1 -dsa \"smoothShaded\" -dsl \"default\" $gDynPaintEditorName;" +
- " }" +
- "}")
- DisplayShadedAndTextured;
-
- // Display Light for current panel.
- //
- runTimeCommand -default true
- -annotation ("Turn on Light Display")
- -category ("Modeling Panel")
- -command ( "{" +
- " string $currentPanel = `getPanel -withFocus`; " +
- " string $panelType = `getPanel -to $currentPanel`;" +
- " if ($panelType == \"modelPanel\") { " +
- " modelEditor -edit -dl \"all\" $currentPanel;" +
- " } else if (`isTrue \"MayaCreatorExists\"` && `scriptedPanel -ex $currentPanel` && `scriptedPanel -q -type $currentPanel` == \"dynPaintScriptedPanelType\") {" +
- " dynPaintEditor -e -dtx 1 -dsl \"all\" $gDynPaintEditorName;" +
- " }" +
- "}")
- DisplayLight;
-
- // Toggle Backface Culling for current panel
- //
- runTimeCommand -default true
- -annotation ("Toggle Backface Culling")
- -category ("Modeling Panel")
- -command ( "{" +
- " string $currentPanel = `getPanel -withFocus`; " +
- " string $panelType = `getPanel -to $currentPanel`;" +
- " if ($panelType == \"modelPanel\") { " +
- " int $culling = `modelEditor -query -backfaceCulling $currentPanel`;" +
- " modelEditor -edit -backfaceCulling (1 - $culling) $currentPanel;" +
- " }" +
- "}")
- ToggleBackfaceCulling;
-
- // Shading Marking Menu.
- //
- runTimeCommand -default true
- -annotation ("Shading Marking Menu")
- -category ("Modeling Panel")
- -command ("buildShadingMM")
- DisplayShadingMarkingMenu;
-
- runTimeCommand -default true
- -annotation ("Shading Marking Menu Pop Down")
- -category ("Modeling Panel")
- -command ("MarkingMenuPopDown")
- DisplayShadingMarkingMenuPopDown;
-
- // Frame selection in current panel view.
- //
- runTimeCommand -default true
- -annotation ("Fit Selection in Active Panel")
- -category ("Modeling Panel")
- -command ("fitPanel -selected")
- FrameSelected;
-
- // Frame all in current panel view.
- //
- runTimeCommand -default true
- -annotation ("Fit Selection in All Panels")
- -category ("Modeling Panel")
- -command ("fitPanel -all")
- FrameAll;
-
- // Show select all Marking Menu.
- //
- runTimeCommand -default true
- -annotation ("Fit All in Active Panel, with Marking Menu (Press)")
- -category ("Modeling Panel")
- -command ("buildSelectAllMM")
- SelectAllMarkingMenu;
-
- runTimeCommand -default true
- -annotation ("Fit All in Active Panel, with Marking Menu (Release)")
- -category ("Modeling Panel")
- -command ("buildSelectAllMM_release")
- SelectAllMarkingMenuPopDown;
-
- //
- // Status Line.
- //
- // ----------------------------------------------------------------------
-
- // Snap to curve.
- //
- runTimeCommand -default true
- -annotation ("Toggle Snap to Curve")
- -category ("Status Line")
- -command ("snapMode -curve (!`snapMode -q -curve`)")
- SnapToCurve;
-
- // Snap to grid.
- //
- runTimeCommand -default true
- -annotation ("Toggle Snap to Grid")
- -category ("Status Line")
- -command ("snapMode -grid (!`snapMode -q -grid`)")
- SnapToGrid;
-
- // Snap to point.
- //
- runTimeCommand -default true
- -annotation ("Toggle Snap to Point")
- -category ("Status Line")
- -command ("snapMode -point (!`snapMode -q -point`)")
- SnapToPoint;
-
- // Toggle selection mode.
- //
- runTimeCommand -default true
- -annotation ("Toggle Object/Component Editing")
- -category ("Status Line")
- -command ("toggleSelMode")
- SelectToggleMode;
-
- // Selection masks.
- //
- runTimeCommand -default true
- -annotation ("Select Polygon & Subd Surface Vertices")
- -category ("Status Line")
- -command ("setSelectMode components Components; " +
- "selectType -smp 1 -sme 0 -smf 0 -smu 0 -pv 1 -pe 0 " +
- "-pf 0 -puv 0; select -cl;")
- SelectVertexMask;
-
- runTimeCommand -default true
- -annotation ("Select Polygon & Subd Surface Edges")
- -category ("Status Line")
- -command ("setSelectMode components Components; " +
- "selectType -smp 0 -sme 1 -smf 0 -smu 0 -pv 0 -pe 1 " +
- "-pf 0 -puv 0; select -cl;")
- SelectEdgeMask;
-
- runTimeCommand -default true
- -annotation ("Select Polygon & Subd Surface Faces")
- -category ("Status Line")
- -command ("setSelectMode components Components; " +
- "selectType -smp 0 -sme 0 -smf 1 -smu 0 -pv 0 -pe 0 " +
- "-pf 1 -puv 0; select -cl;")
- SelectFacetMask;
-
- runTimeCommand -default true
- -annotation ("Select Polygon & Subd Surface UVs")
- -category ("Status Line")
- -command ("setSelectMode components Components; " +
- "selectType -pv 0 -pe 0 -pf 0 -puv 1 -smp 0 -sme 0 -smf 0 -smu 1; select -cl;")
- SelectUVMask;
-
- runTimeCommand -default true
- -annotation ("Select Polygon VertexFaces")
- -category ("Status Line")
- -command ("setSelectMode components Components; "
- + "selectType -pvf 1 -pe 0 -pf 0 -puv 0; select -cl;")
- SelectVertexFaceMask;
-
- // Select all input/output.
- //
- runTimeCommand -default true
- -annotation ("Select All Input")
- -category ("Status Line")
- -command ("selectAllInputOutput false")
- SelectAllInput;
-
- runTimeCommand -default true
- -annotation ("Select All Output")
- -category ("Status Line")
- -command ("selectAllInputOutput true")
- SelectAllOutput;
-
- //
- // Tools.
- //
- // ----------------------------------------------------------------------
-
- // Enter edit mode.
- //
- runTimeCommand -default true
- -annotation ("Enter Tool Edit Mode")
- -category ("Tools")
- -command ("ctxEditMode")
- EnterEditMode;
-
- // Show manipulators.
- //
- runTimeCommand -default true
- -annotation ("Show Manipulator Tool")
- -category ("Tools")
- -command ("setToolTo ShowManips")
- ShowManipulators;
-
- // Select tool.
- //
- runTimeCommand -default true
- -annotation ("Select Tool")
- -category ("Tools")
- -command ("global string $gSelect; setToolTo $gSelect;")
- SelectTool;
-
- runTimeCommand -default true
- -annotation ("Lasso Tool")
- -category ("Tools")
- -command ("global string $gLasso; setToolTo $gLasso;")
- LassoTool;
-
- // Select the non sacred tool.
- //
- runTimeCommand -default true
- -annotation ("NonSacred Tool")
- -category ("Tools")
- -command ("if ($gNonSacredTool != \"\") {ctxCompletion; " +
- "setToolTo $gNonSacredTool;}")
- NonSacredTool;
-
- // Show translate Marking Menu.
- //
- runTimeCommand -default true
- -annotation ("Move Tool Marking Menu")
- -category ("Tools")
- -command ("buildXYZTransMM")
- TranslateToolMarkingMenu;
-
- runTimeCommand -default true
- -annotation ("Move Tool Marking Menu Pop Down")
- -category ("Tools")
- -command ("MarkingMenuPopDown")
- TranslateToolMarkingMenuPopDown;
-
- // Show rotate Marking Menu.
- //
- runTimeCommand -default true
- -annotation ("Rotate Tool Marking Menu")
- -category ("Tools")
- -command ("buildXYZRotMM")
- RotateToolMarkingMenu;
-
- runTimeCommand -default true
- -annotation ("Rotate Tool Marking Menu Pop Down")
- -category ("Tools")
- -command ("MarkingMenuPopDown")
- RotateToolMarkingMenuPopDown;
-
- // Show scale Marking Menu.
- //
- runTimeCommand -default true
- -annotation ("Scale Tool Marking Menu")
- -category ("Tools")
- -command ("buildXYZScaleMM")
- ScaleToolMarkingMenu;
-
- runTimeCommand -default true
- -annotation ("Scale Tool Marking Menu Pop Down")
- -category ("Tools")
- -command ("MarkingMenuPopDown")
- ScaleToolMarkingMenuPopDown;
-
- // Translate with snap Marking Menu
- //
- runTimeCommand -default true
- -annotation ("Translate Tool With Snap Marking Menu")
- -category ("Tools")
- -command ("buildTranslateMM")
- TranslateToolWithSnapMarkingMenu;
-
- runTimeCommand -default true
- -annotation ("Translate Tool With Snap Marking Menu Pop Down")
- -category ("Tools")
- -command ("MarkingMenuPopDown")
- TranslateToolWithSnapMarkingMenuPopDown;
-
- // Rotate with snap Marking Menu
- //
- runTimeCommand -default true
- -annotation ("Rotate Tool With Snap Marking Menu")
- -category ("Tools")
- -command ("buildRotateMM")
- RotateToolWithSnapMarkingMenu;
-
- runTimeCommand -default true
- -annotation ("Rotate Tool With Snap Marking Menu Pop Down")
- -category ("Tools")
- -command ("MarkingMenuPopDown")
- RotateToolWithSnapMarkingMenuPopDown;
-
- // Scale with snap Marking Menu
- //
- runTimeCommand -default true
- -annotation ("Scale Tool With Snap Marking Menu")
- -category ("Tools")
- -command ("buildScaleMM")
- ScaleToolWithSnapMarkingMenu;
-
- runTimeCommand -default true
- -annotation ("Scale Tool With Snap Marking Menu Pop Down")
- -category ("Tools")
- -command ("MarkingMenuPopDown")
- ScaleToolWithSnapMarkingMenuPopDown;
-
- // Show select object Marking Menu.
- //
- runTimeCommand -default true
- -annotation ("Select Tool Marking Menu")
- -category ("Tools")
- -command ("buildSelectObjectMM")
- SelectToolMarkingMenu;
-
- runTimeCommand -default true
- -annotation ("Select Tool Marking Menu Pop Down")
- -category ("Tools")
- -command ("MarkingMenuPopDown")
- SelectToolMarkingMenuPopDown;
-
- // Show select component Marking Menu.
- //
- runTimeCommand -default true
- -annotation ("Select Tool Component Marking Menu")
- -category ("Tools")
- -command ("buildSelectComponentMM")
- SelectComponentToolMarkingMenu;
-
- runTimeCommand -default true
- -annotation ("Select Tool Component Marking Menu Pop Down")
- -category ("Tools")
- -command ("MarkingMenuPopDown")
- SelectComponentToolMarkingMenuPopDown;
-
- // Show select polygon Marking Menu.
- //
- runTimeCommand -default true
- -annotation ("Select Tool Polygon Marking Menu")
- -category ("Tools")
- -command ("buildPolyMM")
- SelectPolygonToolMarkingMenu;
-
- runTimeCommand -default true
- -annotation ("Select Tool Polygon Marking Menu Pop Down")
- -category ("Tools")
- -command ("MarkingMenuPopDown")
- SelectPolygonToolMarkingMenuPopDown;
-
- // Show select mask Marking Menu.
- //
- runTimeCommand -default true
- -annotation ("Select Tool Mask Marking Menu")
- -category ("Tools")
- -command ("buildSelectMaskMM")
- SelectMaskToolMarkingMenu;
-
- runTimeCommand -default true
- -annotation ("Select Tool Mask Marking Menu Pop Down")
- -category ("Tools")
- -command ("MarkingMenuPopDown")
- SelectMaskToolMarkingMenuPopDown;
-
- // Time Dragger Tool (aka Virtual Time Slider).
- //
- runTimeCommand -default true
- -annotation ("Activate Virtual Time Slider")
- -category ("Tools")
- -command ("storeLastAction( \"restoreLastContext \" + `currentCtx` );" +
- "setToolTo TimeDragger")
- TimeDraggerToolActivate;
-
- runTimeCommand -default true
- -annotation ("Deactivate Virtual Time Slider")
- -category ("Tools")
- -command ("invokeLastAction")
- TimeDraggerToolDeactivate;
-
- // Move Nearest Picked Key tool.
- //
- runTimeCommand -default true
- -annotation ("Activate Move Nearest Picked Key Mode")
- -category ("Tools")
- -command ("storeLastAction( \"restoreLastContext \" + `currentCtx` );" +
- "setToolTo directKeySuperContext")
- MoveNearestPickedKeyToolActivate;
-
- runTimeCommand -default true
- -annotation ("Deactivate Move Nearest Picked Key Mode")
- -category ("Tools")
- -command ("invokeLastAction")
- MoveNearestPickedKeyToolDeactivate;
-
- // Add Key tool.
- //
- runTimeCommand -default true
- -annotation ("Activate Add Key Mode")
- -category ("Tools")
- -command ("storeLastAction( \"restoreLastContext \" + `currentCtx` );" +
- "setToolTo setKeySuperContext")
- AddKeyToolActivate;
-
- runTimeCommand -default true
- -annotation ("Deactivate Add Key Mode")
- -category ("Tools")
- -command ("invokeLastAction")
- AddKeyToolDeactivate;
-
- // Insert Key tool.
- //
- runTimeCommand -default true
- -annotation ("Activate Insert Key Mode")
- -category ("Tools")
- -command ("storeLastAction( \"restoreLastContext \" + `currentCtx` );" +
- "setToolTo insertKeySuperContext")
- InsertKeyToolActivate;
-
- runTimeCommand -default true
- -annotation ("Deactivate Insert Key Mode")
- -category ("Tools")
- -command ("invokeLastAction")
- InsertKeyToolDeactivate;
-
- // Invoke last action.
- //
- runTimeCommand -default true
- -annotation ("Invoke Last Action")
- -category ("Tools")
- -command ("invokeLastAction")
- LastActionTool;
-
- // Complete current tool.
- //
- runTimeCommand -default true
- -annotation ("Complete current Tool")
- -category ("Tools")
- -command ("ctxCompletion")
- CompleteCurrentTool;
-
- // Abort current tool.
- //
- runTimeCommand -default true
- -annotation ("Abort current Tool")
- -category ("Tools")
- -command ("ctxAbort")
- AbortCurrentTool;
-
- //
- // Playback Controls.
- //
- // ----------------------------------------------------------------------
-
- // Move to next key.
- //
- runTimeCommand -default true
- -annotation ("Go to Next Key")
- -category ("Playback Controls")
- -command ("currentTime -edit `findKeyframe -timeSlider -which next`")
- NextKey;
-
- // Move to previous key.
- //
- runTimeCommand -default true
- -annotation ("Go to Previous Key")
- -category ("Playback Controls")
- -command ("currentTime -edit `findKeyframe -timeSlider " +
- "-which previous`")
- PreviousKey;
-
- // Move to next frame.
- //
- runTimeCommand -default true
- -annotation ("Move forward one frame in time")
- -category ("Playback Controls")
- -command ("currentTime ( `currentTime -q` + 1 )")
- NextFrame;
-
- // Move to previous frame.
- //
- runTimeCommand -default true
- -annotation ("Move backward one frame in time")
- -category ("Playback Controls")
- -command ("currentTime ( `currentTime -q` - 1 )")
- PreviousFrame;
-
- // Start playback forewards.
- //
- runTimeCommand -default true
- -annotation ("Start Play Forwards")
- -category ("Playback Controls")
- -command ("evalEcho(\"play -forward true\")")
- PlaybackForward;
-
- // Start playback backwards.
- //
- runTimeCommand -default true
- -annotation ("Start Play Backwards")
- -category ("Playback Controls")
- -command ("evalEcho(\"play -forward false\")")
- PlaybackBackward;
-
- // Stop playback.
- //
- runTimeCommand -default true
- -annotation ("Stop Playback")
- -category ("Playback Controls")
- -command ("evalEcho(\"play -state off\")")
- PlaybackStop;
-
- // Toggle playback.
- //
- runTimeCommand -default true
- -annotation ("Toggle Playback On/Off")
- -category ("Playback Controls")
- -command ("togglePlayback")
- PlaybackToggle;
-
- //
- // Navigation commands.
- //
- // ----------------------------------------------------------------------
-
- // Turn off Transform no Selection mode.
- //
- runTimeCommand -default true
- -annotation ("Lock Selection Mode Off")
- -category ("Navigation")
- -command ("selectPref -xformNoSelect false")
- TransformNoSelectOffTool;
-
- // Turn on Transform no Selection mode.
- //
- runTimeCommand -default true
- -annotation ("Lock Selection Mode On")
- -category ("Navigation")
- -command ("selectPref -xformNoSelect true")
- TransformNoSelectOnTool;
-
- // Tumble Tool.
- //
- runTimeCommand -default true
- -annotation ("Tumble Tool: Rotate the point of view around the "
- + "centre of interest (Alt + LMB)")
- -category ("Navigation")
- -command ("setToolTo tumbleContext")
- TumbleTool;
-
- // Track Tool.
- //
- runTimeCommand -default true
- -annotation ("Track Tool: Track the camera (Alt + MMB)")
- -category ("Navigation")
- -command ("setToolTo trackSuperContext")
- TrackTool;
-
- // Dolly Tool.
- //
- runTimeCommand -default true
- -annotation ("Dolly Tool: Move the camera in and out (Alt + LMB + MMB)")
- -category ("Navigation")
- -command ("setToolTo dollySuperContext")
- DollyTool;
-
- // Zoom Tool.
- //
- runTimeCommand -default true
- -annotation ("Zoom Tool: Zoom the camera in and out")
- -category ("Navigation")
- -command ("setToolTo boxZoomSuperContext")
- ZoomTool;
-
- //
- // Application commands.
- //
- // ----------------------------------------------------------------------
-
- // Show NURBs/Poly Modeling UI.
- //
- runTimeCommand -default true
- -annotation ("Show Modeling UI")
- -category ("Application")
- -command ("workingMode \"Modeling\"")
- ShowModelingUI;
-
- // Show Animation UI.
- //
- runTimeCommand -default true
- -annotation ("Show Animation UI")
- -category ("Application")
- -command ("workingMode \"Animation\"")
- ShowAnimationUI;
-
- // Show Dynamics UI.
- //
- runTimeCommand -default true
- -annotation ("Show Dynamics UI")
- -category ("Application")
- -command ("workingMode \"Dynamics\"")
- ShowDynamicsUI;
-
- // Show Rendering UI.
- //
- runTimeCommand -default true
- -annotation ("Show Rendering UI")
- -category ("Application")
- -command ("workingMode \"Rendering\"")
- ShowRenderingUI;
-
- // Show All UI.
- //
- runTimeCommand -default true
- -annotation ("Show All UI")
- -category ("Application")
- -command ("workingMode \"all\"")
- ShowAllUI;
-
- //
- // Miscellaneous.
- //
- // ----------------------------------------------------------------------
-
- // Pop down the Marking Menu.
- //
- runTimeCommand -default true
- -annotation ("Pop down the Marking Menu")
- -category ("Miscellaneous")
- -command ("if (`popupMenu -exists tempMM`) { deleteUI tempMM; }" +
- "if (`popupMenu -exists tempMM2`) { deleteUI tempMM2; }")
- MarkingMenuPopDown;
-
- // Go to working frame.
- //
- runTimeCommand -default true
- -annotation ("Go to working frame")
- -category ("Miscellaneous")
- -command ("currentWorkingFrame \"goto\"")
- GoToWorkingFrame;
-
- // Set current frame to be the working frame.
- //
- runTimeCommand -default true
- -annotation ("Set current frame as working frame")
- -category ("Miscellaneous")
- -command ("currentWorkingFrame \"store\"")
- SetWorkingFrame;
-
- // For Irix only, a command that opens the Desktop File Manager.
- //
- if (`about -irix`) {
- runTimeCommand -default true
- -annotation ("Open Desktop File Manager")
- -category ("Miscellaneous")
- -command ("waitCursor -state on; " +
- "system(\"/usr/sbin/fm \" + `getenv \"HOME\"` + \" >/dev/null 2>&1 &\" ); " +
- "waitCursor -state off")
- DesktopFileManager;
- }
-
- // Pop current pane.
- //
- runTimeCommand -default true
- -annotation ("Pop current pane")
- -category ("Miscellaneous")
- -command ("panePop")
- PanePop;
-
- runTimeCommand -default true
- -annotation ("Close the front window")
- -category ("Miscellaneous")
- -command ("closeFrontWindow")
- CloseFrontWindow;
-
- // Set keyboard focus to Command Line.
- //
- runTimeCommand -default true
- -annotation ("Set keyboard focus to Command Line")
- -category ("Miscellaneous")
- -command ("global string $gCommandLine; setFocus $gCommandLine;")
- SetFocusToCommandLine;
-
- // Set keyboard focus to Numeric Input Line.
- //
- runTimeCommand -default true
- -annotation ("Set keyboard focus to Numeric Input Line")
- -category ("Miscellaneous")
- -command ("global string $gNumericalInputField; " +
- "setFocus $gNumericalInputField;")
- SetFocusToNumericInputLine;
-
- // Show the Attribute Editor or swap with Channel Box.
- //
- runTimeCommand -default true
- -annotation ("Open Attribute Editor, or swap with Channel Box")
- -category ("Miscellaneous")
- -command ("if(`isAttributeEditorVisible`){setChannelBoxVisible(1); " +
- "}else{openAEWindow;}")
- ShowAttributeEditorOrChannelBox;
-
- // Toggle visibility of main menubar.
- //
- runTimeCommand -default true
- -annotation ("Toggle Main Menubar Visibility")
- -category ("Miscellaneous")
- -command ("if (`optionVar -q mainWindowMenubarVis`) " +
- "{setMainMenubarVisible 0;} else {setMainMenubarVisible 1;}")
- ToggleMainMenubar;
-
- // Toggle visibility of panel menubars.
- //
- runTimeCommand -default true
- -annotation ("Toggle Panel Menubar Visibility")
- -category ("Miscellaneous")
- -command ("if (`optionVar -q allowMenusInPanels`) " +
- "{toggleMenuBarsInAllPanels 0;} else {toggleMenuBarsInAllPanels 1;}")
- TogglePanelMenubar;
-
- // Hotbox display style
- //
- runTimeCommand -default true
- -annotation ("Hotbox Display Style - Rows Visible")
- -category ("Miscellaneous")
- -command ("hotBox -dh")
- FullHotboxDisplay;
-
- // Pixel move.
- //
- runTimeCommand -default true
- -annotation ("Move up one pixel")
- -category ("Miscellaneous")
- -command ("pixelMove 0 1")
- PixelMoveUp;
-
- runTimeCommand -default true
- -annotation ("Move down one pixel")
- -category ("Miscellaneous")
- -command ("pixelMove 0 -1")
- PixelMoveDown;
-
- runTimeCommand -default true
- -annotation ("Move left one pixel")
- -category ("Miscellaneous")
- -command ("pixelMove -1 0")
- PixelMoveLeft;
-
- runTimeCommand -default true
- -annotation ("Move right one pixel")
- -category ("Miscellaneous")
- -command ("pixelMove 1 0")
- PixelMoveRight;
-
- // Pick walking.
- //
- runTimeCommand -default true
- -annotation ("Walk up the current hierarchy")
- -category ("Miscellaneous")
- -command ("evalEcho(\"pickWalk -d up\")")
- PickWalkUp;
-
- runTimeCommand -default true
- -annotation ("Walk down the current hierarchy")
- -category ("Miscellaneous")
- -command ("evalEcho(\"pickWalk -d down\")")
- PickWalkDown;
-
- runTimeCommand -default true
- -annotation ("Walk left in the current hierarchy")
- -category ("Miscellaneous")
- -command ("evalEcho(\"pickWalk -d left\")")
- PickWalkLeft;
-
- runTimeCommand -default true
- -annotation ("Walk right in the current hierarchy")
- -category ("Miscellaneous")
- -command ("evalEcho(\"pickWalk -d right\")")
- PickWalkRight;
-
- // Repeat last action at mouse position.
- //
- runTimeCommand -default true
- -annotation ("Repeat Last Action At Mouse Position")
- -category ("Miscellaneous")
- -command ("{float $pos[] = `autoPlace -um`;repeatLast;"
- + "move $pos[0] $pos[1] $pos[2];}")
- RepeatLastActionAtMousePosition;
-
- // Go to min frame.
- //
- runTimeCommand -default true
- -annotation ("Go to Min Frame")
- -category ("Miscellaneous")
- -command ("currentTime -e `playbackOptions -query -min`")
- GoToMinFrame;
-
- // Marking menu for switching menubar mode.
- //
- runTimeCommand -default true
- -annotation ("Menubar Tab Switcher Marking Menu")
- -category ("Miscellaneous")
- -command ("menubarHotkeyMM")
- UIModeMarkingMenu;
-
- runTimeCommand -default true
- -annotation ("Menubar Tab Switcher Marking Menu Pop Down")
- -category ("Miscellaneous")
- -command ("MarkingMenuPopDown")
- UIModeMarkingMenuPopDown;
-
- // Cycle IK handle sticky state.
- //
- runTimeCommand -default true
- -annotation ("Cycle handle sticky state")
- -category ("Miscellaneous")
- -command ("ikHandleCycleSticky")
- CycleIKHandleStickyState;
-
- // The following commands change the display smoothness of active (i.e.
- // selected) objects. They are similar in function to the menu items
- // under "Display->NURBS Smoothness->...", however the menu items can be
- // made to operate on all objects, not just selected ones. Also, the
- // menu items have option boxes for setting various parameters, whereas
- // the commands below have fixed parameters.
- //
- // So, in short, do not remove the below commands thinking that their
- // functionality is already available in the
- // "Display->NURBS Smoothness->..." menu. The commands are supposed
- // to be there, in addition to the menu items.
- //
- // Low Quality Display.
- //
- runTimeCommand -default true
- -annotation ("Low Quality Display Setting")
- -category ("Miscellaneous")
- -command ("setDisplaySmoothness 1")
- LowQualityDisplay;
-
- // Medium Quality Display.
- //
- runTimeCommand -default true
- -annotation ("Medium Quality Display Setting")
- -category ("Miscellaneous")
- -command ("setDisplaySmoothness 2")
- MediumQualityDisplay;
-
- // High Quality Display.
- //
- runTimeCommand -default true
- -annotation ("High Quality Display Setting")
- -category ("Miscellaneous")
- -command ("setDisplaySmoothness 3")
- HighQualityDisplay;
-
- // Quality Display Marking Menu.
- //
- runTimeCommand -default true
- -annotation ("Set Display Quality Marking Menu (Press)")
- -category ("Miscellaneous")
- -command ("buildQualityDisplayMM")
- QualityDisplayMarkingMenu;
- runTimeCommand -default true
- -annotation ("Set Display Quality Marking Menu (Release)")
- -category ("Miscellaneous")
- -command ("buildQualityDisplayMM_release")
- QualityDisplayMarkingMenuPopDown;
-
- // Select Next Intermediate Object
- //
- runTimeCommand -default true
- -annotation ("Select Next Intermediate Object")
- -category ("Miscellaneous")
- -command ("cycleIntermediateObjectSibling 1")
- SelectNextIntermediatObject;
-
- // Enable isolate select.
- //
- runTimeCommand -default true
- -annotation ("Isolate Select")
- -category ("Miscellaneous")
- -command ( "{" +
- " string $currentPanel = `getPanel -withFocus`; " +
- " string $panelType = `getPanel -to $currentPanel`;" +
- " if ($panelType == \"modelPanel\") { " +
- " enableIsolateSelect $currentPanel true;" +
- " }" +
- "}")
- SelectIsolate;
-
- //
- // Manipulator commands.
- //
- // ----------------------------------------------------------------------
-
- // Next manipulator handle.
- //
- runTimeCommand -default true
- -annotation ("Go to next manipulator handle")
- -category ("Manipulator")
- -command ("shuffleManipHandleIndex -next")
- NextManipulatorHandle;
-
- // Previous manipulator handle.
- //
- runTimeCommand -default true
- -annotation ("Go to previous manipulator handle")
- -category ("Manipulator")
- -command ("shuffleManipHandleIndex -previous")
- PreviousManipulatorHandle;
-
- // Increase manipulator size.
- //
- runTimeCommand -default true
- -annotation ("Increase Manipulator Size")
- -category ("Manipulator")
- -command ("manipOptions -r -s 2.0")
- IncreaseManipulatorSize;
-
- // Increase manipulator size.
- //
- runTimeCommand -default true
- -annotation ("Decrease Manipulator Size")
- -category ("Manipulator")
- -command ("manipOptions -r -s 0.5")
- DecreaseManipulatorSize;
-
- //
- // Hotbox commands.
- //
- // ----------------------------------------------------------------------
-
- // Show the Hotbox.
- //
- runTimeCommand -default true
- -annotation ("Show Hotbox")
- -category ("Hotbox")
- -command ("hotBox")
- ShowHotbox;
-
- // Hide the Hotbox.
- //
- runTimeCommand -default true
- -annotation ("Hide Hotbox")
- -category ("Hotbox")
- -command ("hotBox -release")
- HideHotbox;
-
- //
- // Artisan commands.
- //
- // ----------------------------------------------------------------------
-
- // Opacity virtual slider.
- runTimeCommand -default true
- -annotation ("Activate Modify Opacity (Press)")
- -category ("Artisan")
- -command ("artActivateScreenSlider \"opacity\"")
- ModifyOpacityPress;
-
- runTimeCommand -default true
- -annotation ("Deactivate Modify Opacity (Release)")
- -category ("Artisan")
- -command ("artDeactivateScreenSlider")
- ModifyOpacityRelease;
-
- // Value virtual slider.
- runTimeCommand -default true
- -annotation ("Activate Modify Value (Press)")
- -category ("Artisan")
- -command ("artActivateScreenSlider \"value\"")
- ModifyPaintValuePress;
-
- runTimeCommand -default true
- -annotation ("Deactivate Modify Value (Release)")
- -category ("Artisan")
- -command ("artDeactivateScreenSlider")
- ModifyPaintValueRelease;
-
- // Paint Operation popup menu.
- runTimeCommand -default true
- -annotation ("Maya Artisan Operation, with Marking Menu (Press)")
- -category ("Artisan")
- -command ("artPaintOperationMenu")
- PaintOperationMarkingMenuPress;
-
- runTimeCommand -default true
- -annotation ("Maya Artisan Operation, with Marking Menu (Release)")
- -category ("Artisan")
- -command ("artDeletePopMenu")
- PaintOperationMarkingMenuRelease;
-
- // Flood.
- runTimeCommand -default true
- -annotation ("Flood with the current value")
- -category ("Artisan")
- -command ("artFloodSurfaces")
- FloodSurfaces;
-
- // Show Wireframe on/off.
- runTimeCommand -default true
- -annotation ("Toggle Wireframe On/Off")
- -category ("Artisan")
- -command ("artToggleWireframeDisplay")
- ToggleWireframeInArtisan;
-
- // Turn colour feedback on/off.
- runTimeCommand -default true
- -annotation ("Toggle Color Feedback On/Off")
- -category ("Artisan")
- -command ("artToggleColorFeedback")
- ToggleColorFeedback;
-
- // Pick colour mode.
- runTimeCommand -default true
- -annotation ("Activate Pick Color Mode")
- -category ("Artisan")
- -command ("artActivatePickColorMode")
- PickColorActivate;
-
- runTimeCommand -default true
- -annotation ("Deactivate Pick Color Mode")
- -category ("Artisan")
- -command ("artDeactivatePickColorMode")
- PickColorDeactivate;
-
- // PolyBrush commands
- runTimeCommand -default true
- -annotation ("Poly Brush Operation, with Marking Menu")
- -category ("Artisan")
- -command ("polyBrushControl -1 0")
- PolyBrushMarkingMenu;
-
- runTimeCommand -default true
- -annotation ("Poly Brush Operation, with Marking Menu Pop Down")
- -category ("Artisan")
- -command ("deletePopupMenu")
- PolyBrushMarkingMenuPopDown;
-
- // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- // Old Artisan/Jasper tools.
-
- // Reflection.
- runTimeCommand -default true
- -annotation ("Toggle Reflection On/Off")
- -category ("Artisan")
- -command ("toggleReflection")
- ToggleReflection;
-
- // Show Preview on/off.
- runTimeCommand -default true
- -annotation ("Toggle Show Preview On/Off")
- -category ("Artisan")
- -command ("toggleShowPreview")
- TogglePreview;
-
- // Masking on/off.
- runTimeCommand -default true
- -annotation ("Toggle Masking CVs On/Off")
- -category ("Artisan")
- -command ("toggleMaskingCVs")
- ToggleMaskingCVs;
-
- // Toggle common edge display.
- runTimeCommand -default true
- -annotation ("Toggle Common Edges Display Mode")
- -category ("Artisan")
- -command ("changeCommonEdgeDisplay")
- ToggleCommonEdgesDisplay;
-
- // Toggle common corner display.
- runTimeCommand -default true
- -annotation ("Toggle Common Corners Display")
- -category ("Artisan")
- -command ("toggleCommonCornersDisplay")
- ToggleCommonCornersDisplay;
-
- // Flood Stitch.
- runTimeCommand -default true
- -annotation ("Stitch Surfaces")
- -category ("Artisan")
- -command ("puttyFloodStitch")
- FloodStitch;
-
- // Update Erase Surface.
- runTimeCommand -default true
- -annotation ("Update Erase Surface")
- -category ("Artisan")
- -command ("puttyUpdateEraseSurface")
- UpdateEraseSurface;
-
- // Update Reference Surface.
- runTimeCommand -default true
- -annotation ("Update Reference Surface")
- -category ("Artisan")
- -command ("puttyUpdateReferenceSurface")
- UpdateReferenceSurface;
-
- // Toggle Autosmooth.
- runTimeCommand -default true
- -annotation ("Toggle Autosmooth")
- -category ("Artisan")
- -command ("puttyToggleAutosmooth")
- ToggleAutoSmooth;
-
-
- // Select cluster mode.
- runTimeCommand -default true
- -annotation ("Activate Select Cluster Mode (Press)")
- -category ("Artisan")
- -command ("activateSelectCluster")
- SelectClusterActivate;
-
- runTimeCommand -default true
- -annotation ("Deactivate Select Cluster Mode (Release)")
- -category ("Artisan")
- -command ("deactivateSelectCluster")
- SelectClusterDectivate;
-
- runTimeCommand -default true
- -annotation ("Activate Modify Reflection Isoparm (Press)")
- -category ("Artisan")
- -command ("activateReflectIsoparmScreenSlider")
- ModifyReflectionIsoparmPress;
-
- runTimeCommand -default true
- -annotation ("Deactivate Modify Reflection Isoparm (Release)")
- -category ("Artisan")
- -command ("artDeactivateScreenSlider")
- ModifyReflectionIsoparmRelease;
-
- runTimeCommand -default true
- -annotation ("Activate Modify Target (Press)")
- -category ("Artisan")
- -command ("activateGlobalScreenSlider")
- ModifiyTargetPress;
-
- runTimeCommand -default true
- -annotation ("Deactivate Modify Target (Release)")
- -category ("Artisan")
- -command ("artDeactivateScreenSlider")
- ModifiyTargetRelease;
-
- runTimeCommand -default true
- -annotation ("Set Modify Target, with Marking Menu (Press)")
- -category ("Artisan")
- -command ("setGlobalScreenSliderMode")
- ModifyTargetMarkingMenu;
-
- runTimeCommand -default true
- -annotation ("Set Modify Target, with Marking Menu (Release)")
- -category ("Artisan")
- -command ("deletePopupMenu")
- ModifyTargetMarkingMenuPopDown;
-
- runTimeCommand -default true
- -annotation ("Activate Modify Sculpt Reference Vector (Press)")
- -category ("Artisan")
- -command ("puttyReferenceVector")
- ModifySculptReferenceVectorMarkingMenu;
-
- runTimeCommand -default true
- -annotation ("Deactivate Modify Sculpt Reference Vector (Release)")
- -category ("Artisan")
- -command ("deletePopupMenu")
- ModifySculptReferenceVectorMarkingMenuPopDown;
-
- //
- // Brush Tools.
- //
- // ----------------------------------------------------------------------
-
- // Commands for activating/deactivating screen sliders.
- //
- // New Artisan Tools.
- runTimeCommand -default true
- -annotation ("Activate Modify Upper Brush Radius (Press) / " +
- "Modify Paint Effect Brush Scale")
- -category ("Brush Tools")
- -command ("artActivateScreenSlider \"upper_radius\"")
- ModifyUpperRadiusPress;
-
- runTimeCommand -default true
- -annotation ("Deactivate Modify Upper Brush Radius (Release)")
- -category ("Brush Tools")
- -command ("artDeactivateScreenSlider")
- ModifyUpperRadiusRelease;
-
- runTimeCommand -default true
- -annotation ("Activate Modify Lower Brush Radius (Press) / " +
- "Modify Paint Effects Brush Size")
- -category ("Brush Tools")
- -command ("artActivateScreenSlider \"lower_radius\"")
- ModifyLowerRadiusPress;
-
- runTimeCommand -default true
- -annotation ("Deactivate Modify Lower Brush Radius (Release)")
- -category ("Brush Tools")
- -command ("artDeactivateScreenSlider")
- ModifyLowerRadiusRelease;
-
- runTimeCommand -default true
- -annotation ("Activate Modify Stamp Depth (Press) / " +
- "Modify Artisan Brush Stamp Depth")
- -category ("Brush Tools")
- -command ("artActivateScreenSlider \"stamp_depth\"")
- ModifyStampDepthPress;
-
- runTimeCommand -default true
- -annotation ("Deactivate Modify Stamp Depth (Release)")
- -category ("Brush Tools")
- -command ("artDeactivateScreenSlider")
- ModifyStampDepthRelease;
-
- runTimeCommand -default true
- -annotation ("Activate Modify Max Displacement (Press) / " +
- "Modify Paint Effect Surface Offset")
- -category ("Brush Tools")
- -command ("artActivateScreenSlider \"displacement\"")
- ModifyDisplacementPress;
-
- runTimeCommand -default true
- -annotation ("Deactivate Modify Max Displacement (Release)")
- -category ("Brush Tools")
- -command ("artDeactivateScreenSlider")
- ModifyDisplacementRelease;
-
- //
- // Global disk cache commands.
- //
- // ----------------------------------------------------------------------
-
- runTimeCommand -default true
- -annotation ("Create Disk Cache for Jiggle Deformer")
- -category ("Disk Cache")
- -command ("performDiskCache true false mcj")
- CreateDiskCache;
-
- runTimeCommand -default true
- -annotation ("Create Disk Cache Options")
- -category ("Disk Cache")
- -command ("performDiskCache true true mcj")
- CreateDiskCacheOptions;
-
- runTimeCommand -default true
- -annotation ("Global Disk Cache Controls")
- -category ("Disk Cache")
- -command ("globalDiskCacheControl")
- GlobalDiskCacheControl;
-
- //
- // UV Texture Editor commands.
- //
- // ----------------------------------------------------------------------
-
- runTimeCommand -default true
- -annotation ("Select Shell: Select UV Shell(s) for Active UV(s)")
- -category ("UV Texture Editor")
- -command ("polySelectBorderShell 0")
- SelectUVShell;
-
- runTimeCommand -default true
- -annotation ("Select Shell Border: Select UV Border(s) for Active UV(s)")
- -category ("UV Texture Editor")
- -command ("polySelectBorderShell 1")
- SelectUVBorder;
-
- }
- miscCommands();
-